[scilab-Users] building vector from data file

Peng Du eddy.pdu at gmail.com
Wed Jul 7 22:45:17 CEST 2010


Thanks very much Mathieu.

Another question: how can I plot3d three vectors without any logical
relationships? For example, there is no f(x,y)=z.

Many thanks.

Peng


On 7 July 2010 13:17, Mathieu Dubois <mathieu.dubois at limsi.fr> wrote:

> Hi Peng,
>
>  I have managed to let Scilab read data from file and display them however
>> I like. But, how can I dynamically create vectors out of the data it reads
>> line by line?
>>
> I assume that you don't know how many lines are going to be read.
>
> One way to do this is:
> 1) create an empty vector: v=[]
> 2) for each line you can append your data with: v($+1) = new_data
> $ is the scilab equivalent of matlab end operator. Scilab takes care of
> data allocation and so on...
>  It works also with matrices.
>
> As a toy example, look at the attached file.
>
> HTH,
> Mathieu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100707/06443650/attachment.htm>


More information about the users mailing list