急问:sym格式怎么作图?谢谢。
x,s均为sym格式。经过运算得:
s=-218.544+.368005*x^3-9.27371*x^2+77.9499*x
282.512-.393004*x^3+10.6111*x^2-95.0569*x
-1806.55+2.11528*x^3-60.1902*x^2+571.066*x
61153.5-69.1408*x^3+1991.25*x^2-19114.2*x
-72631.3+73.6139*x^3-2199.36*x^2+21895.3*x
538009.-512.323*x^3+15624.8*x^2-158817.*x
-2548.09*(10.2000-1.*x)^3+39730.7*(x-10.2000)^3+385.418-37.7860*x
分别表示x在相邻区间的插值函数,怎么作图?
我问的问题相当于
syms x y
y=4*x+1
plot(x,y)
运行后
??? Error using ==> plot
Conversion to double from sym is not possible.
怎么解决呀?谢谢。
回复
老问题.请搜索论坛.或者
help subs
help eval syms x y;
y=4*x+1;
xx=;
yy=subs(y,{x},{xx});
plot(xx,yy)
用eplot应该可以
ezplot
页:
[1]