How to Set Up If/Else Statement with Condition of Seeing if Item in Structure Array is a Table

3 ビュー (過去 30 日間)
Hello,
I have a structure array with variable number of items.
Some of these items are just words, saying something like 'This is not what you need'.
The rest of the items are a table.
I eventually want to plot one of the columns of each table in the structure array vs another vector
I want to do an if statement that checks if the item is a table, so something like:
for i=1:N
if struct(i).Day == table
scatter(Time_Vector,struct(i).Day(:,2))
else
end
end
Is this something that is possible in MATLAB?
If my question doesn't make sense, I can elaborate.
Thanks.

採用された回答

Les Beckham
Les Beckham 2022 年 12 月 14 日
I suggest the istable function. Documentation is here

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by