Yi-xiao Liu
Followers: 0 Following: 0
Statistiken
RANG
238.734
of 290.042
REPUTATION
0
BEITRÄGE
26 Fragen
5 Antworten
ANTWORTZUSTIMMUNG
53.85%
ERHALTENE STIMMEN
0
RANG
of 19.626
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 144.434
BEITRÄGE
0 Probleme
0 Lösungen
PUNKTESTAND
0
ANZAHL DER ABZEICHEN
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Frage
MATLAB and Fortran gives different results (precision)
I have 2 small programs in MATLAB and Fortran, respectively, which should be identical MATLAB version f=zeros(size(r1,1),3); ...
mehr als ein Jahr vor | 1 Antwort | 0
1
AntwortFrage
FFT spectral leak?
I find that in the power spectrum returned by fft the amplitude of peaks are much smaller than expected, even for artifical sign...
mehr als ein Jahr vor | 1 Antwort | 0
1
AntwortFrage
Efficient way to divide array into tiles
I use the following code to divide array into tiles n=2;nrow=3;ncol=3; A=reshape(1:36,6,6) A=mat2cell(A,zeros(nrow,1)+n,zer...
mehr als ein Jahr vor | 1 Antwort | 0
1
AntwortIntersect() with with repetition
Here is my current solution. A=[1,1;1,1;1,2]; B=[0,1;1,1;1,1]; [uA,~,iA]=unique(A,"rows","stable"); iA=sortrows([iA,(1:...
mehr als ein Jahr vor | 0
Frage
Intersect() with with repetition
The syntax [C,ia,ib] = intersect(A,B,'rows') returns elements without repetitions. However, I need every potential combination o...
mehr als ein Jahr vor | 4 Antworten | 0
4
AntwortenPrinting figure alters content details
I have brought this to MATLAB support, they concluded that this is an visual artifact produced by the renderer when the on-scree...
mehr als ein Jahr vor | 0
Frage
Printing figure alters content details
I am trying to print some figures generated by imagesc into png images for portability. However, I found the output to lose some...
fast 2 Jahre vor | 2 Antworten | 0
2
AntwortenFrage
Exporting large figure on headless servers
I am trying to export some large figures (~1e4 by 1e4 surf plots) into bitmap images directly on our HPC cluster. Here is some t...
fast 2 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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 ...
fast 2 Jahre vor | 1 Antwort | 0
1
AntwortEquivalent 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...
fast 2 Jahre vor | 0
| akzeptiert
Frage
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...
fast 2 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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 ...
fast 2 Jahre vor | 1 Antwort | 0
1
Antwortimplicit 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...
etwa 2 Jahre vor | 0
Frage
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-...
mehr als 2 Jahre vor | 2 Antworten | 0
2
AntwortenFrage
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...
etwa 3 Jahre vor | 2 Antworten | 0
2
AntwortenFrage
Please help me vectorize my loop to construct query vector from sample points
I want to construct a vector xq (the query vector) from xs (sample point vector) for use in interp1. Ideally, xq would: contain...
etwa 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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...
etwa 3 Jahre vor | 0 Antworten | 0
0
AntwortenFrage
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 ...
etwa 3 Jahre vor | 0 Antworten | 0
0
AntwortenWarning: 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 ...
etwa 3 Jahre vor | 0
| akzeptiert
Frage
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 ...
etwa 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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,...
etwa 3 Jahre vor | 2 Antworten | 0
2
AntwortenFrage
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...
etwa 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
Padded input for ScatteredInterpolant
I am tring to reconstruct a surface in cylinderical coordinate space from set of points. theta,R,z represents azimuthal, radial,...
etwa 3 Jahre vor | 0 Antworten | 0
0
AntwortenFrage
Scaled MAD in isoutlier
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...
mehr als 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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...
mehr als 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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...
mehr als 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
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...
mehr als 3 Jahre vor | 0 Antworten | 0
0
AntwortenFrage
Adding label to axis ticks
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...
mehr als 3 Jahre vor | 1 Antwort | 0
1
AntwortFrage
Function to output multiple figures
I am trying to write a function that could output multiple figures function [fig1,fig2] = FunctionName(Input1,Input2,Input3) ...
mehr als 4 Jahre vor | 0 Antworten | 0
0
AntwortenFrage
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 ...
mehr als 4 Jahre vor | 1 Antwort | 0