Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
ZH
ZH il 18 Lug 2020
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commenti
Walter Roberson
Walter Roberson il 18 Lug 2020
contains(T.Properties.CustomProperties.SourceFile, '_Units')
???
Image Analyst
Image Analyst il 18 Lug 2020
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

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by