Curious
Posts:
1,700
Registered:
12/6/04
|
|
Re: Help with array of matrix
Posted:
Jan 10, 2013 1:15 PM
|
|
"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)]
|
|