Dot indexing is not supported for variables of this type.

조회 수: 3 (최근 30일)
Meena
Meena 2023년 3월 28일
댓글: Meena 2023년 3월 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