I'm trying to define a simbolic variable like ¨ syms x ¨. I used to do it but now It doesn't work..
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Xavi Alm
am 21 Nov. 2019
Beantwortet: Star Strider
am 21 Nov. 2019
Example of the code:
syms I1 I2 z1 z2 z3 z4 kt I3 I4 M K
M=[I1+I2*(z1^2/z2^2) 0;0 I3*z4^2/z3^2+I4]
K=[(z1^2/z2^2)*kt -(z1*z4)*kt/(z2*z3);-(z1*z4)*kt/(z2*z3) (z4^2/z3^2)*kt]
D=inv(M)*K
[V,D]=eig(D)
M=[16 6;6 4]
K=[88.29 0;0 29.42]
0 Kommentare
Akzeptierte Antwort
Star Strider
am 21 Nov. 2019
Run these lines from your Command Window or a script:
restoredefaultpath
rehash toolboxcache
If doing that does not solve the problem, use the Contact Us telephone handset icon in the upper-right corner of this page to ask MathWorks Tech Support to help you solve it.
0 Kommentare
Weitere Antworten (1)
Erivelton Gualter
am 21 Nov. 2019
Bearbeitet: Erivelton Gualter
am 21 Nov. 2019
Maybe you do not have the Symbolica Package installed or do not have license. Run the following comand on command windows:
ver
And check for the following in bold:
Symbolic Math Toolbox Version X.X (R20XX)
Also check if you have a license for this package:
*By the way, your code is fine.
2 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!