Calling Konstants from string with name instead of index
Ältere Kommentare anzeigen
Hello everyone,
I have a string A containing konstants, which are calculated before.
A=[M_sig epsopen Emod sigopen]
Is there any way I can use the konstants name in equations instead of using the index? It would be great so I can recognice the used formula and don't need to check for the konstant name.
Like using
Emod*sigopen instead of A(3)*(4)
Thanks for your help
Akzeptierte Antwort
Weitere Antworten (1)
James Tursa
am 30 Aug. 2017
Bearbeitet: James Tursa
am 30 Aug. 2017
Are you just trying to do this?
[M_sig,epsopen,Emod,sigopen] = deal(A(1),A(2),A(3),A(4));
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!