vanathidevi
Member level 2
conversion to double from struct is not possible
hi,
i want to maintain array of structures in MATLAB
my variable name is file.
just i want to have
file(1)
file(2)
file(3)
file(4)
also file(1).fieldname
like thaT
is it possible in MATLAB?
i used the codeings
file(1)=struct;
but it says
Error using ==> double
Conversion to double from struct is not possible.
plz help me
thank you frds
with thanks n regards
vanathi
Added after 2 hours 47 minutes:
file(1)=struct('flow','e1','w','2.2','v','0','lp','1215','ron','1','count','5','pktsent','0','c','0','f','0','s','0','id','1','active','1');
is this the format is correct?
in matlab help this format is given.
can i initialize them like in C?
if the above format is given
error is
Error using ==> double
Conversion to double from struct is not possible.
plz help me
thanks n regards
vanathi
hi,
i want to maintain array of structures in MATLAB
my variable name is file.
just i want to have
file(1)
file(2)
file(3)
file(4)
also file(1).fieldname
like thaT
is it possible in MATLAB?
i used the codeings
file(1)=struct;
but it says
Error using ==> double
Conversion to double from struct is not possible.
plz help me
thank you frds
with thanks n regards
vanathi
Added after 2 hours 47 minutes:
file(1)=struct('flow','e1','w','2.2','v','0','lp','1215','ron','1','count','5','pktsent','0','c','0','f','0','s','0','id','1','active','1');
is this the format is correct?
in matlab help this format is given.
can i initialize them like in C?
if the above format is given
error is
Error using ==> double
Conversion to double from struct is not possible.
plz help me
thanks n regards
vanathi