How can i resolve the following error in Matlab code in "main.m" file

4 vues (au cours des 30 derniers jours)
Syed Zenith Rhyhan
Syed Zenith Rhyhan le 11 Août 2018
Commenté : Walter Roberson le 11 Août 2018
Reference to non-existent field 'Area'. Error in main (line 71) area(i) = stats(i).Area;
  2 commentaires
Rik
Rik le 11 Août 2018
Have a read here (or here for more general advice) and here. It will greatly improve your chances of getting an answer.
Walter Roberson
Walter Roberson le 11 Août 2018
You used regionprops but you did not pass 'Area' to it.
Or, there is a path in your code in which the regionprops() is not done.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by