Borrar filtros
Borrar filtros

I write L' but in the command window it writes ans. Why?

4 visualizaciones (últimos 30 días)
Alexandra Panayiota Gregoriou
Alexandra Panayiota Gregoriou el 5 de Mzo. de 2022
Respondida: Shanmukha Voggu el 7 de Mzo. de 2022
  2 comentarios
Torsten
Torsten el 5 de Mzo. de 2022
Editada: Torsten el 5 de Mzo. de 2022
To put it easily:
If you operate on a variable or matrix (e.g. transpose L), this new expression is not alligned to an already existing variable and its name. So you will get "ans" for it in the command window.
If you do
Ltransp = L'
"Ltransp" instead of "ans" will appear.
John D'Errico
John D'Errico el 5 de Mzo. de 2022
@Alexandra Panayiota Gregoriou - generally, please use flags to indicate posts that require moderator attention of some sort, not as a way to thank a person for a response. Your flag said:
"ohh. Tahnkyouuu"
which is nice to acknowledge the help you got. But use a comment to do so.

Iniciar sesión para comentar.

Respuestas (1)

Shanmukha Voggu
Shanmukha Voggu el 7 de Mzo. de 2022
Hi Alexandra,
Adding to the comments above, Refer to this documentation link: https://www.mathworks.com/help/matlab/ref/ans.html for more information.
Hope this helps!

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by