sym to double data type:
I want to obtain the y_values in double but they are in symbolic form. Anyway I can get around this? Thank you!
L_e = 0.7199;
Y_poly = @(x) a4*x.^4 + a3*x.^3 + a2*x.^2 + a1*x + a0;
x_values = linspace(0, L_e, 100); % 100 points from 0 to L_e
y_values = Y_poly(x_values);
The values for the coefficients are:
a4 = -0.324785
a3 = 0.472768
a2 = -0.011102
a1 = 0.000000
a0 = 1.000000I want to obtain the y_values in double but they are in symbolic form. Anyway I can get around this? Thank you!
L_e = 0.7199;
Y_poly = @(x) a4*x.^4 + a3*x.^3 + a2*x.^2 + a1*x + a0;
x_values = linspace(0, L_e, 100); % 100 points from 0 to L_e
y_values = Y_poly(x_values);
The values for the coefficients are:
a4 = -0.324785
a3 = 0.472768
a2 = -0.011102
a1 = 0.000000
a0 = 1.000000 I want to obtain the y_values in double but they are in symbolic form. Anyway I can get around this? Thank you!
L_e = 0.7199;
Y_poly = @(x) a4*x.^4 + a3*x.^3 + a2*x.^2 + a1*x + a0;
x_values = linspace(0, L_e, 100); % 100 points from 0 to L_e
y_values = Y_poly(x_values);
The values for the coefficients are:
a4 = -0.324785
a3 = 0.472768
a2 = -0.011102
a1 = 0.000000
a0 = 1.000000 #sym, #double, #polynomial MATLAB Answers — New Questions