Re: [Scilab-users] How to assign column data to mlist?

2015-07-14 Thread Samuel Gougeon
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-14 Thread jrafaelbguerra
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-13 Thread Samuel Gougeon
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-13 Thread Rafael Guera
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-13 Thread Rafael Guera
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-12 Thread Samuel Gougeon
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-12 Thread jaipur
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.

Re: [Scilab-users] How to assign column data to mlist?

2015-07-11 Thread Samuel Gougeon
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

Re: [Scilab-users] How to assign column data to mlist?

2015-07-11 Thread jaipur
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