Clear Filters
Clear Filters

How to rewrite my expression using two abbreviations?

2 views (last 30 days)
I tried Rewrite Expression Using Abbreviations example in 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?
Asmit Singh
Asmit Singh on 29 Jun 2021
The question is not clear, can you tell what do you mean by sigma1 and sigma2
Valeri Aronov
Valeri Aronov on 29 Jun 2021
Both refs above have greek sigmas rendered as in,_science,_and_engineering

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Jun 2021
You get the pretty output only with Live Script
Walter Roberson
Walter Roberson on 30 Jun 2021
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 on 4 Jul 2021
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.

Sign in to comment.

More Answers (0)


Find more on Mathematics in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!