[Scilab-users] {EXT} Plotting graphs

Godson Moses godsonikem at gmail.com
Thu Nov 10 14:50:21 CET 2016


Thanks slot that was very helpful

Plse how can one plot a single column by every other column  in a matrix?
And that on a single screen.

Thanks  a lot!
On Nov 8, 2016 1:17 PM, "Dang Ngoc Chan, Christophe" <
Christophe.Dang at sidel.com> wrote:

> Hello,
>
> > De : users [mailto:users-bounces at lists.scilab.org] De la part de Godson
> Moses
> > Envoyé : mardi 8 novembre 2016 07:06
> >
> > Please with a data set in Excel sheet
> > how do I  export it to Scilab
> > and also  select the columns and row I want  to plot
> > neglecting the others.
>
> The best is to have a look at :
> https://help.scilab.org/docs/6.0.0/en_US/section_
> c76aa854271b0bbdb796e15512af62cf.html
>
> If you have .xls files, you can use xls_open() and xls_read().
>
> I personally always export a CSV from Excel, then use csvRead() in Siclab.
> But mind that by default, Excel use a semi-colon as separator and not a
> comma,
> therefore I use
>
> myValues = csvRead(filename, ";", "double");
>
> In any case, you get a matrix of values.
> If you want to plot the nth column vs. the mth column, just use
>
> X = myValues(:, m);
>
> Y = myValues(:, n);
>
> plot(X, Y);
>
> HTH,
>
> regards
>
> --
> Christophe Dang Ngoc Chan
> Mechanical calculation engineer
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error),
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161110/9c148ef9/attachment.htm>


More information about the users mailing list