How to rewrite my expression using two abbreviations?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Valeri Aronov
el 29 de Jun. de 2021
Comentada: Valeri Aronov
el 4 de Jul. de 2021
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 comentarios
Asmit Singh
el 29 de Jun. de 2021
The question is not clear, can you tell what do you mean by sigma1 and sigma2
Respuesta aceptada
Walter Roberson
el 29 de Jun. de 2021
You get the pretty output only with Live Script
11 comentarios
Walter Roberson
el 30 de Jun. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Formula Manipulation and Simplification 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!