Here i got the 3 equations but i want to evaluate the equations with values of x , what code should i add?
For example in the 2nd eqauation i want to evaluate it when x=5.333
syms a1 a2 a3 b1 b2 b3 c1 c2 c3 x1 x2 x3 x4 x5 x6 x7 x8
x1 = a1*x(2)^2+b1*x(2)+c1 == y(2);
x2 = a2*x(2)^2+b2*x(2)+c2 == y(2);
x3 = a2*x(3)^2+b2*x(3)+c2 == y(3);
x4 = a3*x(3)^2+b3*x(3)+c3 == y(3);
x5 = 2*a2*x(2)+b2 == 2*a1*x(2)+b1;
x6 = 2*a3*x(3)+b3 == 2*a2*x(3)+b2;
x7 = a1*x(1)^2+b1*x(1)+c1 == y(1);
x8 = a3*x(4)^2+b3*x(4)+c3 == y(4);
m1 = [0 x(2) 1;0 x(1) 1 ];
m2 = [2*x(2) 1 0; x(2)^2 x(2) 1; x(3)^2 x(3) 1];
s2 = [2*a1*x(2)+b1 y(2) y(3)]';
m3 = [x(3)^2 x(3) 1;x(4)^2 x(4) 1; 2*x(3) 1 0];
s3 = [y(3) y(4) 2*a2*x(3)+b2]';
disp("equation for the first sub-interval is");
e1 = a1*x^2+b1*x+c1 == 0;
disp("equation for the second sub-interval is");
e2 = a2*x^2+b2*x+c2 == 0;
disp("equation for the third sub-interval is");
e3 = a3*x^2+b3*x+c3 == 0;