Hello Bart,

I suppose you want to use the int2d <https://help.scilab.org/docs/6.0.0/en_US/int2d.html> function? Then you should define b as a function, like in the example.

Regards,

Paul



On 01/02/2017 11:26 AM, Pirovano, Bart wrote:

Goodday, I would like to add a second function to the underneath little program. I suppose something I haven’t done correct where I address ‘b’. Can somebody put me in the good direction with integrating the x,y curve?

clf;

// y-axis GZ (m)

// x-axis degrees

x=[0,2,5,10,12,15,20,25,30,40,50,60]';

y=[0,0.065,0.10,0.136,0.159,0.19,0.29,0.382,0.50,0.84,0.91,0.85]';

b=['2x'];

xtitle("GZ kromme Elandsgracht / departure Singapore") xlabel('φ (degrees)'); ylabel('GZ (m)'); plot2d (x,y); integ('x,y','x',0,30);

Bart



_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to