Community Profile # Yi-xiao Liu

Last seen: Today Active since 2020

#### Statistics

• #### Content Feed

View by

Question

pre-allocating disk space for matfile objects containing cell arrays of large sparse matrices
I have a custom function that consumes O(n^2) RAM in intermediate steps and generates very sparse outputs. The current strategy ...

4 días ago | 0 answers | 0

### 0

Equivalent of A&(~B) without using ~
Hat tip to @David Goodmanson and @Stephen23. I found 4 solutions: A=rand(5)<0.6;B=rand(5)>0.2; ref=A&(~B); Method1=A; Me...

9 días ago | 0

| accepted

Question

Equivalent of A&(~B) without using ~
I am looking for a way to generate the same output as A&(~B) w/o using the ~ operator. The problem is both A and B are very larg...

9 días ago | 1 answer | 0

### 1

Question

Slicing matrices to fit in memory
I have a custom vectorized function whose space (and time) complexity is O(n^2). The problem is that n is very large, ~1e6, and ...

13 días ago | 0 answers | 0

### 0

implicit expansion for arrayfun
Apparently arrayfun is a build-in function and I cannot access its source code. Here is what I come up with. [a,b,c,d]=Implicit...

5 meses ago | 0

Question

implicit expansion for arrayfun
I want to do something similar to bsxfun, but for more than 2 arrays. For example arrayfun(@f, A,B,C,D) where A is a m-by-...

5 meses ago | 2 answers | 0

### 2

Question

Find the index range of ones/trues?
For example, given a logical vector: [0,0,1,0,0,1,1,0,1,1,1,0,0...] I need a two-column matrix: [3,3; 6,7; 9,11;...] tha...

alrededor de 1 año ago | 2 answers | 0

### 2

Question

I want to construct a vector xq (the query vector) from xs (sample point vector) for use in interp1. Ideally, xq would: contain...

alrededor de 1 año ago | 1 answer | 0

### 1

Question

Why does this vectorized version does return the same as a for loop?
I am trying to sum the inter-electrostatic forces of n points at r=[rx,ry,rz] However, the vectorized version does not return...

alrededor de 1 año ago | 0 answers | 0

### 0

Question

Does event location terminate ODE solver at tspan?
I just wonder what's the behavior of this edge case: a event location is setup to terminate the intergration, however the event ...

más de 1 año ago | 0 answers | 0

### 0

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN. when switching to stiff solvers
OK, I am going to answer my own question here. After providing Jpattern, the ode15s works normally, but does not display any ...

más de 1 año ago | 0

| accepted

Question

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN. when switching to stiff solvers
I am solving a system of ODE to model electrospinning, which could be described as n Viscoelastically connected point charge ...

más de 1 año ago | 1 answer | 0

### 1

Question

Solving vectorized ODE (Solving same ODE with many initial conditions at once).
I am tring to apply 2nd newton law to many points, where m,r,v,f is a n-by-1, n-by-3, n-by-3, n-by-3, n-by-3, matrixes for mass,...

más de 1 año ago | 2 answers | 0

### 2

Question

Logical indexing 3D array to get a 2D slice
I have a piece of code that calculates potential for 3D space. Now I want to extract the potential at the YOZ plane: [X,Y,Z]=me...

más de 1 año ago | 1 answer | 0

### 1

Question

I am tring to reconstruct a surface in cylinderical coordinate space from set of points. theta,R,z represents azimuthal, radial,...

más de 1 año ago | 0 answers | 0

### 0

Question

I have been using scaled MAD in isoutlier and it has done a wonderful job. However, I wonder what's the mathematical basis of th...

más de 1 año ago | 1 answer | 0

### 1

Question

Compare 2 regression models
I wonder if there is any tool to compare 2 regression models on the same sample pool. In general more terms you put into the mod...

más de 1 año ago | 1 answer | 0

### 1

Question

Finding the ranges where scatteredInterpolant is above threshold
I have been using scatteredInterpolant to reconstruct surfaces from actual measured data points. To address the slight misplacem...

más de 1 año ago | 1 answer | 0

### 1

Question

Assign different marker to different errorbar lines
h=errorbar(cell2mat(X2D),cell2mat(Y2D),cell2mat(E2D)); legend(Grouplabel); mkrs=['o';'d';'s';'^';'+';'x']; I use the above co...

más de 1 año ago | 0 answers | 0

### 0

Question

How do I add labels next to the 3 180 xticks? Like sampleA for the first one, sampleB for the second, etc. Thanks! >> xt = xt...

más de 1 año ago | 1 answer | 0

### 1

Question

Function to output multiple figures
I am trying to write a function that could output multiple figures function [fig1,fig2] = FunctionName(Input1,Input2,Input3) ...

más de 2 años ago | 0 answers | 0

### 0

Question

Check appearance counts of multiple patters in a cell matrix
I have 2 cell matrixs: A = m×1 cell array {'abc'} {'def'} {'123'} ...... B = n×1 cell array ...

más de 2 años ago | 1 answer | 0