[Scilab-users] plot versus date

jbaudais@insa-rennes.fr Jean-Yves.Baudais at insa-rennes.fr
Mon Jan 18 09:15:10 CET 2016


Hi,

Le 18/01/2016 09:00, anna78 a écrit :
> Hi all,
> I'm beginner of SCILAB.
>
> I have the file here after reported, made of 5 columns.
> I would like to plot column 4 versus column 1, column 1 being a date in the
> yymmdd format.
> Is there any way to make SCILAB understand the x-axis is a date in yymmdd
> format?


I think, first you need to split yymmdd in a vector [yy,mm,dd]
 > yy=floor(meas_date/10000);
 > mm=floor(meas_date/100)-100*yy;
 > dd=meas_date-100*mm-10000*yy;
and convert this vector with datenum([yy,mm,dd])

Jean-Yves



More information about the users mailing list