matlab画二维图
w=[7:.1:20];y=987+317w-456w^2+w^3+180sqrt(-(w-2)^2(987-307w-213w^2+w^3));如何画出具体的二维图
w=[7:.1:20];y=987+317w-456w^2+w^3+180sqrt(-(w-2)^2(987-307w-213w^2+w^3));如何画出具体的二维图
答案:w=[7:.1:20];y=987+317*w-456*w.^2+w.^3+180*sqrt(-(w-2).^2.*(987-307*w-213*w.^2+w.^3));
>> plot(w,y)
其他:w=[7:1:20];
>> y=987+317.*w-456.*w.^2+w.^3+180.*sqrt(-(w-2).^2.*(987-307.*w-213.*w.^2+w.^3));
>> plot(y)