<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p>Hello Bart,</p>
<p>I suppose you want to use the <a
href="https://help.scilab.org/docs/6.0.0/en_US/int2d.html">int2d</a>
function? Then you should define b as a function, like in the
example.<br>
</p>
<p>Regards,</p>
<p>Paul<br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 01/02/2017 11:26 AM, Pirovano, Bart
wrote:<br>
</div>
<blockquote
cite="mid:B33B55AF1D5B2B49B461BC922ACE70CF5C92C7@MBX03.uva.nl"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">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?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">clf;<o:p></o:p></p>
<p class="MsoNormal">// y-axis GZ (m)<o:p></o:p></p>
<p class="MsoNormal">// x-axis degrees<o:p></o:p></p>
<p class="MsoNormal">x=[0,2,5,10,12,15,20,25,30,40,50,60]';<o:p></o:p></p>
<p class="MsoNormal">y=[0,0.065,0.10,0.136,0.159,0.19,0.29,0.382,0.50,0.84,0.91,0.85]';<o:p></o:p></p>
<p class="MsoNormal">b=['2x'];<o:p></o:p></p>
<p class="MsoNormal">xtitle("GZ kromme Elandsgracht / departure
Singapore") xlabel('φ (degrees)'); ylabel('GZ (m)'); plot2d
(x,y); integ('x,y','x',0,30);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="NL">Bart</span><o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
</body>
</html>