y=f(x)=2.8x^3 – 3.5x^2 + 1.5x – (0.15 + 0.1*0.2529)=0
Plot this function (x in the range of [0, 1])
this is the given question following is my attempt
>> x=linspace(0,1,200);%this is to generate values for "x"
>> y=(2.8*x^3)-(-3.5*x^2)+(1.5*x)-(0.15+(0.1*stu_id))??? Error using ==> mpowerMatrix must be square.>> y=(2.8*.x^3)-(-3.5*.x^2)+(1.5*.x)-(0.15+(0.1*stu_id))??? y=(2.8*.x^3)-(-3.5*.x^2)+(1.5*.x)-(0.15+(0.1*stu_id)) |Error: Unexpected MATLAB operator.>> y=(2.8*.x^3)-(-3.5*.x^2)+(1.5*.x)-(0.15+(0.1*stu_id))=0??? y=(2.8*.x^3)-(-3.5*.x^2)+(1.5*.x)-(0.15+(0.1*stu_id))=0 |Error: Unexpected MATLAB operator.>> 0=(2.8*.x^3)-(-3.5*.x^2)+(1.5*.x)-(0.15+(0.1*stu_id))??? 0=(2.8*.x^3)-(-3.5*.x^2)+(1.5*.x)-(0.15+(0.1*stu_id)) |Error: The expression to the left of the equals sign is not avalid target for an assignment.>>
much appreciate if anyone can point in the right direction
Best Answer