Effacer les filtres
Effacer les filtres

can someone explain this error?

39 vues (au cours des 30 derniers jours)
RUPADHARSHINI
RUPADHARSHINI le 16 Juil 2024 à 20:19
Réponse apportée : Muskan le 17 Juil 2024 à 3:49
Unrecognized method, property, or field 'CurrentFileIndex' for class 'matlab.io.datastore.CombinedDatastore'.
Error in snake (line 41)
if allImages.CurrentFileIndex <= height(aplostisiImages.Files)
  1 commentaire
Torsten
Torsten le 16 Juil 2024 à 20:24
can someone explain this error?
The structure "allImages" does not have a method, property or field 'CurrentFileIndex'.

Connectez-vous pour commenter.

Réponses (1)

Muskan
Muskan le 17 Juil 2024 à 3:49
Hi,
As per my understanding, the error message you are encountering indicates that you are trying to access a method, property, or field named "CurrentFileIndex" on an object of "class matlab.io.datastore.CombinedDatastore", but this class does not have a member by that name.
Here are some of the steps that might help tp troubleshoot the error:
  1. Verify the Class Documentation: Please refer to the following documentation of "CombinedDatastore" to understand its properties and methods. https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.combineddatastore.html
  2. Use Available Properties and Methods: Identify the correct properties or methods to achieve your goal. For example, if you want to check the number of files in the datastore, you might need to use a different property or method.

Community Treasure Hunt

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

Start Hunting!

Translated by