Dot indexing is not supported for variables of this type.

2 次查看(过去 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
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
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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by