[Scilab-users] plot2d problem

Gerhard Kreuzer gerhard.kreuzer at liftoff.at
Fri Aug 26 12:55:21 CEST 2016


Hi thanks,

indeed, it was a problem of the vector format. Now I change that and it
works.

x(1, :)    = vals(:, 1)                                 // Define x axes
state      = vals(:, 2) * 4.0/(2^23-1)
pots(:, 1) = vals(:, 3) * potScaling(1) + potOffset(1)  // Sure there is a
better way to do that
pots(:, 2) = vals(:, 4) * potScaling(2) + potOffset(2)
current    = vals(:, 7) * currScaling   + currOffset
voltage    = vals(:, 8) * uScaling      + uOffset

scf();                                                  // Open a graphic
window
plot2d(x, [state pots current]);                        // Plot State,
potential channel 0 and current


Hope this is more or less the scilab style (I am newbee to scilab)

With best regards

Gerhard



--
View this message in context: http://mailinglists.scilab.org/Scilab-users-plot2d-problem-tp4034454p4034497.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list