How to solve 'Subscripted assignment dimension mismatch.' error?
显示 更早的评论
s=285; l=360; w=2*481.37; d=36.9; alpha=(284.2/180)*pi; y=137;
syms fi
for i=1:451
x=Px(i);
eq = ((((-w/2)+d*sin(alpha-fi))-((-l/2)-x))^2)+(((d*cos(alpha-fi))-(-y))^2) == s^2;
Fi(i)=vpasolve(eq,fi);
end
also Px variable is known.
Error:
Error using subsasgn Subscripted assignment dimension mismatch.
Error in sym/privsubsasgn (line 997) L_tilde2 = builtin('subsasgn',L_tilde,struct('type','()','subs',{varargin}),R_tilde);
Error in sym/subsasgn (line 834) C = privsubsasgn(L,R,inds{:});
Error in general_solve_1 (line 41) Fi(i)=vpasolve(eq,fi);
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Common Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!