Effacer les filtres
Effacer les filtres

Dot indexing is not supported for variables of this type.

1 vue (au cours des 30 derniers jours)
Meena
Meena le 28 Mar 2023
Commenté : Meena le 30 Mar 2023
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 commentaire
KSSV
KSSV le 28 Mar 2023
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.

Connectez-vous pour commenter.

Réponses (1)

chrisw23
chrisw23 le 28 Mar 2023
Your object in_vidsDuration is not yet initialized.
Use isvalid / isempty to check the object state and catch the exception by try/catch.

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by