I begin by an example.
A = [2 4]; A(1)
I'd like to know if there's a setting in the Matlab Preferences which returns
A(1) = 2
ans = 2
I know that I can write something like
but it's long to do for every variables I want to display.
No products are associated with this question.
f=@(x,s,ii) [s sprintf('(%d)=',ii) num2str(x(ii))] disp(f(A,'A',2))
Nothing I am aware of but you can terminate the code with a semicolon and then use the diary command to capture the commands.