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: Help with array of matrix
Replies: 2   Last Post: Jan 10, 2013 1:15 PM

Advanced Search

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

Posts: 1,986
Registered: 12/6/04
Re: Help with array of matrix
Posted: Jan 10, 2013 1:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Victor V" wrote in message <kcmqi1$34m$1@newscl01ah.mathworks.com>...
> data=[];
> load('Dateinamen.mat')
> dir=what;
> Nr_dataset = 10;
> Nr_row = 1;
> Nr_col =3;
> Data_Set=ones(Nr_row , Nr_col , Nr_Dataset);
>
> for x=1:Nr_dataset
>
> load(dir.mat{x})
>
> for y=1:Nr_row
>
> for z=1:Nr_col
>
> Data_Set(x,y,z)= (x_act,y_act,data(x))
>
> end
> end
> end
>
> clear('x_act', 'y_act', 'data', 'Winkel', 'filename');
>
> I have the following program but an error is thrown
> Error: File: Data_for_3D.m Line: 17 Column: 40
> Expression or statement is incorrect--possibly
> unbalanced (, {, or [.
> Still can find the mistake on that line i declare the matrix of ones with all the parameters any help ayone
> Im trying to perform a multimatrix array
>
> thanks in advance


% Perhaps instead of:

Data_Set(x,y,z)= (x_act,y_act,data(x))

% you mean:

Data_Set(x,y,z)= [x_act,y_act,data(x)]



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.