フィルターのクリア

converting specific characters to a variable

2 ビュー (過去 30 日間)
naman
naman 2016 年 5 月 20 日
回答済み: Star Strider 2016 年 5 月 20 日
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.

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 5 月 20 日

Star Strider
Star Strider 2016 年 5 月 20 日
You will need the Symbolic Math Toolbox to do what you want.

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by