Parsing file names and converting to numbers

1 回表示 (過去 30 日間)
thiirane
thiirane 2014 年 3 月 15 日
コメント済み: thiirane 2014 年 3 月 15 日
Hello,
I have a series of bitmap image files each with a velocity as the first 5 characters in the filename (see attached). I seem to be able to isolate the 15.36 from the first file but when I put into a loop in the editor it doesn't like that. Is there a way to parse a filename based on position and write the strings to a numeric variable?
thanks

採用された回答

Walter Roberson
Walter Roberson 2014 年 3 月 15 日
str2double(filename(1:5))
  1 件のコメント
thiirane
thiirane 2014 年 3 月 15 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by