Le 13/07/2015 23:53, Rafael Guera a écrit :
Samuel,
Thanks for the detailed explanation.
Not sure of what M(i) should mean in a situation where the matrices
have different sizes:
data1=ones(10,4);
data2=zeros(5,3);
M=mlist(['V','field1','field2']);
M.field1=data1;
M.field2=data2;
or
Hi Samuel,
Thanks for shedding light about these less well documented yet advanced
features of the Scilab language.
Best regards
Rafael
Sent by Outlook for Android
From: Samuel Gougeon
Sent: Tuesday 14 July 13:22
Subject: Re: [Scilab-users] How to assign column data to mlist
Hello Rafael,
Le 13/07/2015 22:18, Rafael Guera a écrit :
.../...
data1=[11:20]';
data2=[21:30]';
M= mlist(['V', 'field1', 'field2']);
M.field1= data1;
M.field2= data2;
disp(M)
printf(\n\n);
M.field1(2)= %e; /// individual element assignment/
M.field2(3:6)= %pi; /// sub-array
Message-
From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Sunday, July 12, 2015 9:50 AM
To: International users mailing list for Scilab.
Subject: Re: [Scilab-users] How to assign column data to mlist?
Le 12/07/2015 06:21, jaipur a écrit :
Thanks for your
to assign column data to mlist?
Hello Rafael,
Le 13/07/2015 22:18, Rafael Guera a écrit :
.../...
data1=[11:20]';
data2=[21:30]';
M = mlist(['V', 'field1', 'field2']);
M.field1 = data1;
M.field2 = data2;
disp(M)
printf(\n\n);
M.field1(2) = %e; // individual element assignment
M.field2(3:6
Le 12/07/2015 06:21, jaipur a écrit :
Thanks for your suggestion.
Each element of data1 and data2 has, for example, individual's property like
his height and weight. So, I want to treat as one element of mlist like
MyMlist(3), MyMlist(3).field1, MyMlist(3).field2 when notice as individual.
On
Thank you for your suggestion.
I posted to http://bugzilla.scilab.org/11888.
--
View this message in context:
http://mailinglists.scilab.org/How-to-assign-column-data-to-mlist-tp4032561p4032566.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
Hello,
Le 11/07/2015 13:41, jaipur a écrit :
When I already have column data, how shall I collect these data into a mlist?
For example, I have 2 column data,
data1=[11:20]'; data2=[21:30]';
I create a mlist,
MyMlist = mlist(['M', 'field1', 'field2', 'field3']);
I'd like to assign
Thanks for your suggestion.
Each element of data1 and data2 has, for example, individual's property like
his height and weight. So, I want to treat as one element of mlist like
MyMlist(3), MyMlist(3).field1, MyMlist(3).field2 when notice as individual.
On the other hand, when I want to calculate