Reading the lsq_splin function help, should help in this case: The error “There are not enough points to adjust” is due to the fact that the 3rd input to lsq_splin (‘x’ the list of breakpoints of the cubic spline) has values all lying outside the input vt12 variable range (39.49 to 155.62).
From: users <[email protected]> On Behalf Of Daniel Stringari Sent: Saturday, April 11, 2020 3:06 AM To: Users mailing list for Scilab <[email protected]> Subject: Re: [Scilab-users] spline and color plot on the chart Federico, I appreciate the help. Below is a list of the code on which I try to plot the data with Isq_splin: c = size (vt12) a = 0 b = c (1) // c (1) = 16 n = c (1) x = linspace (a, b, n) [y, d] = lsq_splin (vt12, vv12, x ') plot (y, d, 'r') xlabel ('Speed (rpm)') ylabel ('Torque (Nm)') title ('Torque x speed values') //vt12 = 5350.3 5380.19 5410.08 5439.96 4149.5 4179.35 3756.57 3602.73 3568.12 3597.85 3681.91 3711.59 6143.24 6172.86 6202.49 6232.1 //vv12 = 40.16 39.93 39.71 39.49 69.04 68.54 95.32 119.26 140.49 139.32 155.62 154.37 93.27 92.82 92.38 91.94 but I'm getting the error: lsq_plin: There are not enough points to adjust. Does anyone understand what could be wrong?
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
