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 个评论
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