Line of code instead of "ans"
Mostrar comentarios más antiguos
Hello,
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
instead of
ans = 2
I know that I can write something like
fprintf('A(1)', num2str(A(1)));
but it's long to do for every variables I want to display.
Thanks,
Martin
Respuesta aceptada
Más respuestas (2)
Shashank Prasanna
el 7 de Jun. de 2013
0 votos
Nothing I am aware of but you can terminate the code with a semicolon and then use the diary command to capture the commands.
Martin
el 7 de Jun. de 2013
0 votos
Categorías
Más información sobre Language Support en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!