> 其他 >
matlab绘制多条曲线
我在前文用syms定义的参数变量,经过一系列运算求得
f=1/x^2
p1=1/x^3
p2=1/x^4
怎样将这些函数都绘制在同一图中?
如果写成plot(x,f)会出错,因为我x是syms型的,请问如何解决
Error using ==> plot
Conversion to double from sym is not possible.
人气:408 ℃ 时间:2020-06-08 02:55:33
解答
syms x;
f=1/x^2;
p1=1/x^3;
p2=1/x^4;
hold on;
ezplot(f);
ezplot(p1);
ezplot(p2);
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版