converting specific characters to a variable
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I have a string which look like this "x1 + x2+ 2.0e-14". I want to convert x1 and x2 to variables and use further. In addition I also want to convert the "2.0e-14" as a number. I have plenty of such variables. Is there any script which can recognize characters starting with "x" are variables and rest of them are numbers.
0 Kommentare
Antworten (2)
Star Strider
am 20 Mai 2016
You will need the Symbolic Math Toolbox to do what you want.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!