|
|
N-dimensional 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 "N-dimensional 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 work-around 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
|
|