<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">Hi Tim</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">That's indeed what I've read as well; my need remains to get a linear interpolation between physical points ... I'm still digging in order to find a "pleasant" code :_)</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Thanks for the feedback</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-25 17:52, <a href="mailto:tim@wescottdesign.com">tim@wescottdesign.com</a> a écrit :
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">The help says that splin2d generates bicubic patches, so presumably<br /> it's not linear interpolation. <br /> <br /> On 2017-03-25 00:24, <a href="mailto:paul.carrico@free.fr">paul.carrico@free.fr</a> wrote:<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi All<br /> <br /> To go further in 2D/3D interpolation as I started in my previous<br /> emails, I built the example here after.<br /> <br /> As suggested, I had a look to<br /> - cshep2d but but seems can not be used here (dimensions issue)<br /> - splin2d + interp2d<br /> <br /> In the later case, Am I right to say that splin2d "cross-sections"<br /> the surface in order to define the "best spline" passing through the<br /> nodes (in the cross section obviously), then the<br /> interpolation/calculation is basically using this new 2D function,<br /> right ?<br /> <br /> if so this is not a linear interpolation between 2 nodes (as I<br /> expect), isn't it?<br /> <br /> Paul<br /> <br /> ############################################<br /> <br /> mode(0)<br /> <br /> n=10;<br /> x = linspace(0,300,(n+1))';    // abscissa<br /> t = [0 25 100];                         // temperature<br /> z = 20*rand((n+1),3);            // ordinate<br /> // Nota : we must have the same number of data for both x and z<br /> <br /> //  plot3d<br /> clf()<br /> a=get("current_axes");<br /> a.x_label; x_label=a.x_label; x_label.text=" X abscissa";<br /> a.y_label; y_label=a.y_label; y_label.text=" Temperature T";<br /> a.z_label; z_label=a.z_label; z_label.text=" y ordinate";<br /> plot3d(x,t,z)<br /> <br /> // Nota: if I do a cross section normal to XoZ plane, I've the basic<br /> curve z=f(x,T)) -> seems correct<br /> <br /> //  interpolation<br /> xp = [22 103 236]'<br /> tp = [5 56 85]'<br /> <br /> [Xp,Tp] = ndgrid(xp,tp)<br /> <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>
_______________________________________________<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>