Rank: 134068 based on 0 downloads (last 30 days) and 0 file submitted
photo

Mircea

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Mircea View all
Updated File Comments Rating
16 Feb 2013 axescenter Puts axes in the center of a plot. Zooming, panning and some command line manipulations allowed. Author: Matt Fig

Does this work on 3d-plots?

28 Aug 2011 N-dimensional sparse arrays Creates an N-dimensional sparse array object, for arbitrary N. Author: Matt J

Thank you again, Matt J. It is clear I was going the wrong way working with sparse matrices (this is the first time I need it to use them). Thank you for your help.

27 Aug 2011 N-dimensional sparse arrays Creates an N-dimensional sparse array object, for arbitrary N. Author: Matt J

Thank you, Matt J, this class is very usefull.

I have the following question: why does the following code

n = 500;
A = ndSparse.build([2*n 2*n]);
A(1:2:2*n,1:2:2*n) = rand(n);

run in 0.04 seconds, while the following similar code

n = 500;
A = ndSparse.build([2*n 2*n 2]);
A(1:2:2*n,1:2:2*n,1) = rand(n);

runs in 43 seconds (thats 1000 times slower!).

Is there a way to speed up the process of assigning values to truely N-dimensional sparse arrays (N>2)? Thank you.

Contact us