syms a j mu D R_earth k pi J_2 eqn= j*abs(-2*pi*(2*pi*(a^3/mu)^1/2)/D-(3*pi*J_2*R_earth^2*cos(i))/(a^2*(1-e^2)^2))==k*2*pi;a(w+1)=solve(eqn,a)
Unable to perform assignment because the left and right sides have a different number of elements.Error in sym/privsubsasgn (line 1096) L_tilde2 = builtin('subsasgn',L_tilde,struct('type','()','subs',{varargin}),R_tilde);Error in sym/subsasgn (line 933) C = privsubsasgn(L,R,inds{:});Error in part2 (line 37)a(w+1)=solve(eqn,a)
Best Answer