<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<font face="Courier New">Daniel, <br>
<br>
You may try with lsq_spline, which unlike ordinary spline, doesn't
fit the data exactly, and it doesn't need the data with any
particular order.<br>
<br>
But trying to understand your graph, it seems that you should
parametrize two variables independently, each one with respect to
the index. Something like this:<br>
<br>
x = [x1, x2, ..., xn]<br>
y = [y1, y2, ..., yn]<br>
<br>
Then you approximate x vs 1:n and y vs 1:n using spline or
lsq_splin. Finally you plot xs vs ys (the smoothed versions of x
and y) <br>
<br>
Regards,<br>
<br>
Federico Miyara<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 07/04/2020 22:48, Daniel Stringari
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1586310531232-0.post@n3.nabble.com">
<pre class="moz-quote-pre" wrap="">Good night friends,
I wrote an email before, but I believe that I was not clear in my words and
so I will write more clearly.
In this annex 1, I have the graph I am generating. Basically I am extracting
values of x (speed) and y (torque) from excel and generating vectors of x []
and y [] to plot internal lines. I want to smooth these lines, but the
functions of the scilab are only for growing points. I thought about
creating cubic splines manually, but I don't know how to do it. Can anybody
help me ?
In addition, I would like to color my chart with level colors according to
the colorbar, but I am not able to implement contour2d for this case.
thanks.
<a class="moz-txt-link-rfc2396E" href="http://mailinglists.scilab.org/file/t498028/annex_1.png"><http://mailinglists.scilab.org/file/t498028/annex_1.png></a>
--
Sent from: <a class="moz-txt-link-freetext" href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a>
_______________________________________________
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>
</body>
</html>