摘要:
1、solve() 求根 syms x; %定义x为symbol,即所求的根为x y=x*sin(x)-x; solve(y,x); %求 y=xsinx-x的根x % x-2y=5 和 x+y=6 syms x y; eq1=x-2*y-5; eq2=x+y-6; A=solve(eq1,eq2, 阅读全文
摘要:
1、polyval() %多项式构造函数,参数为系数vector,自变量vector f=[9,-5,3,7]; x=-2:0.01:5; %x的范围为-2到5 y=polyval(f,x); %x为自变量范围,f为多项式系数 plot(x,y, ’linewidth’,2); xlabel(‘x’ 阅读全文