Matlab Symbol output in live Script
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Lennart Wabnitz
il 30 Mag 2020
Commentato: madhan ravi
il 8 Lug 2020
Hello, does anyone know how I can change the symbolic output in Matlab so that matlab exactly matches my input? Currently, Matlab defines new "variables" to shorten the output.
I don't want the substitution
0 Commenti
Risposta accettata
Sai Sri Pathuri
il 8 Lug 2020
You may use sympref function with 'AbbreviateOutput' parameter set to false to avoid the creation of new variables
sympref('AbbreviateOutput',false);
syms K EI l1
K1 = [12*EI/l1^3, 6*EI/l1^2, -12*EI/l1^3, 6*EI/l1^2;
6*EI/l1^2, 4*EI/l1, -6*EI/l1^2, 2*EI/l1;
-12*EI/l1^3, -6*EI/l1^2, 12*EI/l1^3, -6*EI/l1^2;
6*EI/l1^2, 2*EI/l1, -6*EI/l1^2, 4*EI/l1;]
Refer this documentation for more information
1 Commento
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!