Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Ndimensional indexing allowed for Full matrices only
Replies:
5
Last Post:
Mar 11, 2010 3:12 AM




Ndimensional indexing allowed for Full matrices only
Posted:
Mar 10, 2010 10:56 AM


Hi everybody, I think I have an error message induced by the installation of R2010a (not completely sure, but at the moment I see no other possible explanation).
I get "Ndimensional indexing allowed for Full matrices only" with such a statement structure
for i=1:n_row for j= 1:n_col rfm(1,i,j)=data(i+1,j+1); end end
where "data" is a sparse matrix
This part of the application is not written by me, and it used to work until the installation of R2010a, that I did today. Can this be the reason?
I guess that the rfm matrix does not like to be sparse because it has three indexes. What kind of workaround can be used, without changing all the rest of the code (I am aware of the possibility of making rfm a cell array of 2D matrix, but this would change all the syntax).
Thanks a lot for any help Regards Claudio



