[scilab-Users] drawing out of two data files
Antoine Monmayrant
antoine.monmayrant at laas.fr
Mon Sep 20 14:11:44 CEST 2010
Le 20/09/2010 13:48, Peng Du a écrit :
> Hi everyone.
>
> I have two data files containing information of the event with the
> same timespan but in different sampling rate, i.e. they have different
> sizes but the first and last line denote the identical moment.
>
> Is there any way I can draw them in one graph and have them proper
> aligned? Thanks a lot.
>
> Best regards,
>
> Peng
I think the following example could help you:
t1=[1:0.1:10]; //first sampling
t2=[1:0.03:10]; //second sampling
s1=cos(t1); //first signal
s2=sin(t2); //second signal
plot(t1,s1,"k");plot(t2,s2,"r"); //both signals on the same graph
Antoine
More information about the users
mailing list