如何在matlab里面化简式子?simplify不可以么?p =2-9/4*cos(w)^2-9/4*sin(w)^2>> simplify(p)Error using ==> reshapeTo RESHAPE the number of elements must not change.Error in ==> sym.maple at 94result = reshape(result,size(varargin{3}));Error i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 12:09:12
如何在matlab里面化简式子?simplify不可以么?p =2-9/4*cos(w)^2-9/4*sin(w)^2>> simplify(p)Error using ==> reshapeTo RESHAPE the number of elements must not change.Error in ==> sym.maple at 94result = reshape(result,size(varargin{3}));Error i
如何在matlab里面化简式子?simplify不可以么?
p =
2-9/4*cos(w)^2-9/4*sin(w)^2
>> simplify(p)
Error using ==> reshape
To RESHAPE the number of elements must not change.
Error in ==> sym.maple at 94
result = reshape(result,size(varargin{3}));
Error in ==> sym.simplify at 14
r = maple('map','simplify',s);
w是syms类型的
如何在matlab里面化简式子?simplify不可以么?p =2-9/4*cos(w)^2-9/4*sin(w)^2>> simplify(p)Error using ==> reshapeTo RESHAPE the number of elements must not change.Error in ==> sym.maple at 94result = reshape(result,size(varargin{3}));Error i
你的p和w是syms类型吗?
我这里
clear
syms w
p=2-9/4*cos(w)^2-9/4*sin(w)^2;
answer=simple(p);
answer
没问题.