用matlab解带符号的方程组,得到一个式子,然后我直接用这个式子,加上变量范围,想画一个曲线出来,结果出现错误,??? Error using ==> mpower
Matrix must be square.
但是我不用变量范围,而是直接代入一个数时,就不会有错误,这究竟是什么原因呢?matlab自己计算的式子,再用怎么会出现错误,再者,用一个变量范围时出错,而用一个数却可以得出结果,错误在哪里?
式子如下,有点长。
t=0:0.01:1; y =atan2(-1.1111111111111111111111111111111.*(-27.000000000000000000000000000000./(193035321.+13251600.*t.^2).*(11221200.*t+285517200.+972000.*t.^3+24732000.*t.^2+18.*(13327490933600.*t.^2-15587246087200.*t-914541210000.*t.^4+998513280000.*t.^3+4461849192461.-129600000000.*t^6+148392000000.*t.^5).^(1/2)).*t-687.00000000000000000000000000000./(193035321.+13251600.*t.^2)*(11221200.*t+285517200.+972000.*t.^3+24732000.*t.^2+18.*(13327490933600.*t.^2-15587246087200.*t-914541210000.*t.^4+998513280000.*t.^3+4461849192461.-129600000000.*t.^6+148392000000.*t.^5).^(1/2))+1039.+90.*t.^2)./(-229.+400.*t),.50000000000000000000000000000000./(193035321.+13251600.*t.^2)*(11221200.*t+285517200.+972000.*t.^3+24732000.*t.^2+18.*(13327490933600.*t.^2-15587246087200.*t-914541210000.*t.^4+998513280000.*t.^3+4461849192461.-129600000000.*t.^6+148392000000.*t.^5).^(1/2)));plot(t,y);
上面的式子会出错;
而当我令t=0.8 一个数时却得出了结果。