attribute to an array of symbolic variables an array with their values
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
timo
am 21 Mär. 2016
Kommentiert: Walter Roberson
am 22 Mär. 2016
HI all
Is there a trick to do this in MATLAB ?
[R1 R2 R3 VA VB VG]=[8 2 4 12 -6 0]
I want to assign to all sym variables the values on right
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 21 Mär. 2016
V = num2cell([8 2 4 12 -6 0]);
[R1 R2 R3 VA VB VG] = deal(V{:});
This does not have anything to do with the symbolic toolbox ? Or are you wanting to subs() like that? If so then
subs(TheExpression, [R1 R2 R3 VA VB VG], [8 2 4 12 -6 0])
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions 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!