<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">thanks all for the answers; I didn't know about ndgrid and I'm currently having a look on it (seems to be quite interesting)</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Samuel: from your example and the help doc, I need to understand how to proceed to perform linear interpolations (temperatures and abscissa's in my example)</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Paul</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Le 2017-03-24 21:40, Samuel Gougeon a écrit :
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Le 24/03/2017 à 18:40, <a href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> a écrit :<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi all,<br /> <br /> I don't know if my question is relavante (or not), but I'm wondering<br /> what is the best way to perform a 3D interpolation, from for the<br /> matrix definition to the interpolation procedure.<br /> <br /> Let me using a basic example: I've some curves y = f(x,T) defining a<br /> material behaviour at different temperatures i.e. 1 curve (x,y) per<br /> temperature:<br /> - y = f(x,20)<br /> - y = f(x,100)<br /> - y = f(x,200)<br /> <br /> etc.<br /> <br /> What is the best way to define a single matrix? [x y T] ?</blockquote>
<br /> It depends on whether f() is vectorized or not. It could be something<br /> like<br /> t = [20 100 200];<br /> [X, T] = ndgrid(x, t);<br /> Y = f(X,T);<br /> // or<br /> Y = feval(x, t);<br /> <br /> Then:<br /> M = [X(:) Y(:) T(:)];<br /> _______________________________________________<br /> users mailing list<br /> <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br /> <a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank" rel="noreferrer">http://lists.scilab.org/mailman/listinfo/users</a></blockquote>
</div>
</body></html>