How to rewrite my expression using two abbreviations?

1 回表示 (過去 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 Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by