![]() |
[求助]分段函数的Matlab表示?
[SIZE="3"]对于分段函数
f(x)=2*x/L (0<x<L/2) =2*(L-x)/L (L/2<x<L) L=pi 如何用matlab表示: >> syms x L >> f=(2*x/L)*(0<x<L/2)+2*(L-x)/L*(L/2<x<L) 提示: ??? Error using ==> < Function '<' is not defined for values of class 'sym'. "<"在类sym中没有定义值,应该怎么写才正确?谢谢!!! [/SIZE] |
所有时间均为北京时间。现在的时间是 11:04。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.