[Scilab-users] Question on the use of dos

2021-07-27 Thread Federico Miyara


Dear all,

I need to use dos() to run an external command line application and have
been experimanting a bit.

I run the following:

commands = "H: cd SOFTWARE\FLAC\ dir"
[output, bOK, exitcode] = dos(commands, "-echo")

or

commands = "H: cd SOFTWARE cd FLAC dir"
[output, bOK, exitcode] = dos(commands, "-echo")

The bOK argument returns T so it seems it worked properly, however I
don't get any echo in the console. I should see the comntent of the
directory FLAC.

What am I doing wrong?

Regards,

Federico Miyara



--
El software de antivirus Avast ha analizado este correo electrónico en busca de 
virus.
https://www.avast.com/antivirus
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Plot Graphs on Different Axes

2021-07-27 Thread CRETE Denis
Hello,
I think this should work:

scf();
plot2d(x1',y1')
a=newaxes();
plot2d(x2',y2')
a.x_location="top";
a.y_location="right";
a.filled="off";

HTH
Denis

De : users  De la part de Samuel Enibe
Envoyé : mardi 27 juillet 2021 17:17
À : Users mailing list for Scilab 
Objet : [Scilab-users] Plot Graphs on Different Axes

I have the following sets of data:
x1 = [0 10 20 30 40 50 60 70 80 90];
y1 = [12.27   12.09   11.5310.639.4 7.896.144.22.13   
0];
x2 = [2   1.5 10.5 0-0.5-1-1.5-2];
y2 = [4.42   6.01   7.85   9.94   12.27   14.85   17.67   20.74   24.05];

I want to plot y1 with x1  (Graph 1) on Bottom x-axis and left y-axis and y2 
with x2 (Graph 2) on Top x-axis and Right y-axis. The axes have different 
ranges of values as seen from the example data

What is the simplest way of doing this?

Samuel  Enibe
University of Nigeria, Nsukka, Nigeria
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Plot Graphs on Different Axes

2021-07-27 Thread Dang Ngoc Chan, Christophe
Hello Samuel

> De : De la part de Samuel Enibe
> Envoyé : mardi 27 juillet 2021 17:17
>
> I want to plot y1 with x1  (Graph 1) on Bottom x-axis and left y-axis and y2 
> with x2 (Graph 2) on Top x-axis and Right y-axis.

I'm not sure what you want to do but you may try something like this:

a1 = newaxes();

a1.tight_limits = "on";

plot(x1, y1);

a2 = newaxes();

a2.tight_limits = "on";

a2.x_location = "top";

a2.y_location = "right";

plot(x2, y2);

HTH


--
Christophe Dang Ngoc Chan
Mechanical calculation engineer


General
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Plot Graphs on Different Axes

2021-07-27 Thread Samuel Enibe
I have the following sets of data:
x1 = [0 10 20 30 40 50 60 70 80 90];
y1 = [12.27   12.09   11.5310.639.4 7.896.144.2
2.13   0];
x2 = [2   1.5 10.5 0-0.5-1-1.5-2];
y2 = [4.42   6.01   7.85   9.94   12.27   14.85   17.67   20.74   24.05];

I want to plot y1 with x1  (Graph 1) on Bottom x-axis and left y-axis and
y2 with x2 (Graph 2) on Top x-axis and Right y-axis. The axes have
different ranges of values as seen from the example data

What is the simplest way of doing this?

Samuel  Enibe
University of Nigeria, Nsukka, Nigeria
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users