フィルターのクリア

Extract number from string

15 ビュー (過去 30 日間)
Yen Tien Yap
Yen Tien Yap 2022 年 5 月 10 日
回答済み: dpb 2022 年 5 月 10 日
I have a coloumn of strings and I want to extract the numbers after the equal signs in an array. May I know how can I do that? Thank you.
"POINT_0_0=294.397"
"POINT_0_1=294.560"
"POINT_0_2=294.459"
"POINT_0_3=294.294"
"POINT_0_4=293.635"

採用された回答

dpb
dpb 2022 年 5 月 10 日
v=str2double(extractAfter(X,'='));
is one way. For more difficult cases look at the new(ish) @doc:pattern function

その他の回答 (0 件)

カテゴリ

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