![]() |
Index exceeds matrix dimensions,没有用到下标怎么还会越界呢?
:confused:
>> ff1='50*z*(z-d)=230.1875*(z^2-r^2)'; >> ff2='((z-d)*r)^2=29318.942*(z^2-r^2)'; >> ff3='50*(z-d)*r=22.0345*(z^2-r^2)'; >> solve(ff1,ff2,ff3) ??? Error using ==> subsref Index exceeds matrix dimensions. Error in ==> sym.subsref at 16 y = builtin('subsref',struct(x),a); Error in ==> solve at 191 S.(char(symvars(j))) = R(:,j); |
回复: Index exceeds matrix dimensions,没有用到下标怎么还会越界呢?
运行没问题的,估计是版本问题!!
ff1='50*z*(z-d)=230.1875*(z^2-r^2)'; ff2='((z-d)*r)^2=29318.942*(z^2-r^2)'; ff3='50*(z-d)*r=22.0345*(z^2-r^2)'; F=solve(ff1,ff2,ff3) d=F.d r=F.r z=F.z 结果为: F = d: [5x1 sym] r: [5x1 sym] z: [5x1 sym] d = d z z 1390.2111993592516807379341541957 -1390.2111993592516807379341541957 r = 0. z -1.*z -37.364685547862253969091147479733 37.364685547862253969091147479733 z = 0. z z -390.33713288472815745808475393093 390.33713288472815745808475393093 不知运行结果是否满意,望有帮助!!! |
回复: Index exceeds matrix dimensions,没有用到下标怎么还会越界呢?
谢谢,数据不好,呵呵
|
所有时间均为北京时间。现在的时间是 13:20。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.