How to rewrite my expression using two abbreviations?

조회 수: 3 (최근 30일)
Valeri Aronov
Valeri Aronov 2021년 6월 29일
댓글: Valeri Aronov 2021년 7월 4일
I tried Rewrite Expression Using Abbreviations example in https://au.mathworks.com/help/symbolic/subexpr.html for subexpr() and I can't reproduce it - the code renders a new expression with sigma, but w/o sigma1 and sigma2.
This is a link to the answer to my another question that uses two abbreviations (sigma1 and sigma2):
How do I get this result in MATLAB?
  댓글 수: 2
Asmit Singh
Asmit Singh 2021년 6월 29일
The question is not clear, can you tell what do you mean by sigma1 and sigma2
Valeri Aronov
Valeri Aronov 2021년 6월 29일
Both refs above have greek sigmas rendered as in https://en.m.wikipedia.org/wiki/Greek_letters_used_in_mathematics,_science,_and_engineering

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

채택된 답변

Walter Roberson
Walter Roberson 2021년 6월 29일
You get the pretty output only with Live Script
  댓글 수: 11
Walter Roberson
Walter Roberson 2021년 6월 30일
That was mostly for consistency. The important part is that I used semi-colon. It could have been coded [r;sigma] but not [r,sigma] because r is a column vector with more than one entry and adding a column with only one entry to that does not work.
Valeri Aronov
Valeri Aronov 2021년 7월 4일
A loosely-typed language like that may become challenging for a casual user like myself. I would say that the prompt help available from MATLAB gurus is a crucial piece of MATLAB usefulness. Thanks a lot.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by