Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Is there a way to do if/then for properties?

1 回表示 (過去 30 日間)
ZH
ZH 2020 年 7 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am adding sourcefile to my properties, but would like to have a conditional statement. If the file contains "_Units" then the file comes from place one
Else Place 2
So far, I have this :
T.Properties.CustomProperties.SourceFile
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 7 月 18 日
contains(T.Properties.CustomProperties.SourceFile, '_Units')
???
Image Analyst
Image Analyst 2020 年 7 月 18 日
if contains(T.Properties.CustomProperties.SourceFile, '_Units', 'IgnoreCase', true)
% It comes from place one.
% So do something with that info, like put it into a different column of the table or whatever.
else
% It comes from place two.
end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by