<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p>Hello Maro,</p>
<p>So does the content of scifunc_block_m look like:</p>
<p> function
ydot=f(t,y)</p>
<p> ...</p>
<p> endfunction</p>
<p> y1 = ode(u1,f...)</p>
<p>? <br>
</p>
<p>By the way, you can put the definition of 'f' in the context
instead of the block itself.</p>
<p>Have you taken a look at blocks <a
href="https://help.scilab.org/docs/6.0.0/en_US/INTEGRAL_m.html">INTEGRAL_m</a>
and <a href="https://help.scilab.org/docs/6.0.0/en_US/CLSS.html">CLSS</a>?
They may be better to design your function in Xcos. </p>
<p>Regards,</p>
<p>Paul<br>
</p>
<br>
<div class="moz-cite-prefix">On 11/16/2016 11:51 PM,
<a class="moz-txt-link-abbreviated" href="mailto:marovranjac@optinet.hr">marovranjac@optinet.hr</a> wrote:<br>
</div>
<blockquote cite="mid:20161116235119.0gpds8qq68gsw488@um.optinet.hr"
type="cite">
<p>Hello!</p>
<p>I need help!</p>
<p>I'm trying to do a simulation, and part of
xcos diagram is a
scifunc_block_m. I wrote a function to be executed and linked it
to that block.
Previously I wrote
that function in editor, it is in the form:</p>
<p>function
ydot=f(t,y)</p>
<p>...</p>
<p>endfunction</p>
<p>Then I've called it with ode(...)
containing inital
time, initial value, etc. and that worked perfectly.</p>
<p>Now that function is
called by
scifunc_block_m but I get as a result ydot calculated
algebraicaly, I don't get
y calculeted as a
solution of that first order differential equation.</p>
<p>Can I get help,
thankyou!</p>
<p>Maro
V.</p>
<br>
<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>