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

조회 수: 1 (최근 30일)
Alexandra Panayiota Gregoriou
Alexandra Panayiota Gregoriou 2022년 3월 5일
답변: Shanmukha Voggu 2022년 3월 7일
  댓글 수: 2
Torsten
Torsten 2022년 3월 5일
편집: Torsten 2022년 3월 5일
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 2022년 3월 5일
@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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shanmukha Voggu
Shanmukha Voggu 2022년 3월 7일
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!

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by