已回答
How to copy a sub-matrix/vector along diagonal of a larger matrix with varying number of sub-matrices?
e = ones(n,1); A = full(spdiags([e 2*e 3*e], 0:2, n, n+2)) A = full(spdiags(A, 0:5, n, n+5)) A = full(spdiags(A, 0:8, n...

11 years 前 | 0

已回答
Correlation: is this correct?
Dear Nuchto, See this: x=rand(4,30); y=10*x+5; corr=sum(zscore(x',1).*zscore(y',1))'/size(x,2) this is different from...

11 years 前 | 0

已回答
problem during running my "while" loop?
How are X0 and Y1 defined? George

11 years 前 | 0

已回答
How to vectorize this loop ?
window_length = 10; X(X==0)=Inf; X_2=repmat(X,1,length(X)-window_length); X_3=triu(X_2,-window_length)-tr...

12 years 前 | 0

已回答
Matlab Error (Z must be a matrix, not a scalar or vector.)?
Is this what you want? x = -2.5:.1:2.5; y = -2.5:.1:2.5; [X,Y] = meshgrid(x,y); Z = 2*sin(X.*Y); mesh(X,Y,Z) g...

12 years 前 | 4

| 已接受

已回答
how could i use the while statement more faster
What do you want to do exactly inside this while loop? Can you show some piece of code?

12 years 前 | 0