Hello. I'm working on a PET system. And I need to extract information from the aquisition files names.

1 回表示 (過去 30 日間)
I have a file that is called, for example:
"13-Jul-2016_09h44_1turn_0p025s_0p9bot_0p9top_range45"
and I want to extract some information about aquisitions, like the number of turns (1turn), for example. How can I do it? Thank you for your time

採用された回答

Walter Roberson
Walter Roberson 2016 年 7 月 21 日
name_parts = strsplit(FileName, '_');
num_turns = str2double( name_parts{3}(1) );

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by