To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I have a matrix A and A= [x y]. X and y are both defined by constants: 3 and 4, respectively.
Now, how do I make it so that I not only get A to show up as 3 4 but as x=3 and y=4.
I tried this A= ['x='x 'y='y] but it does not work.
No products are associated with this question.
Here are 2 solutions:
disp [rate, duration]
2. Use fprintf statement instead of disp like such:
fprintf('rate = %d, duration = %d', rate, duration);
This will produce your "even better" result, I think. If not, let me know what you would like.