...
xnum(j) = xstr;
...
j = j+1;
...
...
end
...
plot3(xnum,ynum,znum);grid on;xlabel('roll');ylabel('pitch');zlabel('yaw');
this is the error i receive
Com Port Open usage: numstates = xnum(sys) Error in xnum (line 13) if nargin == 0
Output argument "numstates" (and maybe others) not assigned during call to "/Applications/MATLAB_R2013a.app/toolbox/robust/rctobsolete/mutools/commands/xnum.m>xnum".
Error in letsdowrite (line 56)
plot3(xnum,ynum,znum);
It appears you have a function file xnum.m as well as having used xnum as an array in your above function. A check at the TMW site doesn't find any reference to xnum so I'm guessing you've inadvertently created this function or have mistakenly used the name of one of your functions twice.
Try clearing all variables and then
which xnum
to see what it resolves to...
