Dot indexing is not supported for variables of this type.
1 回表示 (過去 30 日間)
古いコメントを表示
vid2match = cellstr(in_vidsDuration.video_name{i});
This is my code, while running it showing that dot indexing is not supported. Can i know why it is not supported or i have change the program
1 件のコメント
KSSV
2023 年 3 月 28 日
Check what is the class of your variable.
class(in_vidsDuration)
If it is a structure then you can use dot indexing. This is what I can tell you at this moment with the information given.
回答 (1 件)
chrisw23
2023 年 3 月 28 日
Your object in_vidsDuration is not yet initialized.
Use isvalid / isempty to check the object state and catch the exception by try/catch.
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!