Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: N-dimensional indexing allowed for Full matrices only
Replies: 5   Last Post: Mar 11, 2010 3:12 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Claudio Pedrazzi

Posts: 26
Registered: 8/27/09
N-dimensional indexing allowed for Full matrices only
Posted: Mar 10, 2010 10:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.