正在加载图片...
正如函数dif样,积分函数int对符号数组的每一个元素进行运算。 >F=sym('la*x, b*x2: c*x3, d*s])% create a symbolic array x3, d*s >>diff(f)% ubtegrate the array elements with respect to x [/2*a*x^2,1/3*b*x^3] [/4+c*x^4,d*s*x] 22.5符号表达式画图 在许多的场合,将表达式可视化是有利的。 MATLAB提供了函数 ezplot来完成该任务 >>y=16*x2+64*x+96% expression to plot 16*x^2+64*x+96-1/2*cos(s+2*n)+1/2*cos(s+2*m) 正如函数diff一样,积分函数int对符号数组的每一个元素进行运算。 >> F=sym( ' [a*x,b*x^2;c*x^3,d*s] ' ) % create a symbolic array F= [ a*x,b*x^2] [c*x^3, d*s] >> diff(F) % ubtegrate the array elements with respect to x ans= [1/2*a*x^2,1/3*b*x^3] [1/4*c*x^4, d*s*x] 22.5 符号表达式画图 在许多的场合,将表达式可视化是有利的。MATLAB提供了函数ezplot来完成该任务。 >> y=' 16*x^2+64*x+96 ' % expression to plot y= 16*x^2+64*x+96 >> ezplot(y)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有