Ask your own question, for FREE!
Engineering 14 Online
OpenStudy (anonymous):

Help with Matlab code??? I have my results. It's (2) 70 by 1 matrices. Do I have to use a for loop to create a table?

OpenStudy (anonymous):

Suppose t is a 70 by 1 and A is a 70 by 1.

OpenStudy (anonymous):

so far I have fprintf('%.g %.2g\n', t, A). It provides some sort of result but doesn't really give what I want.

OpenStudy (anonymous):

Never mind. I fixed it with: for j=1:length(A) fprintf('%f %f\n',t(j),A(j)) end Hope this helps someone who has the same question

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!