What is the solution to this error?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ruwaida Lawgali
le 8 Mar 2022
Commenté : Ruwaida Lawgali
le 9 Mar 2022
I am working on object detection, when I execute the code, I have errors. It is a ready code, I put the dataset in the same folder with the files code, also DefaultRoot.mat and CAfilelist.mat exists in the same folder.
But, I have this error:
>> SSDBExperiment_BuildCropDataset
Undefined function or variable 'DefaultRoot'.
Error in SSDBExperiment_BuildCropDataset (line 7)
D.Root =DefaultRoot;
.............................................................................
here a part of code,(SSDBExperiment_BuildCropDataset)
..............................................................................
positive image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/918644/image.png)
negative image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/918649/image.png)
What should I do, which lines need change to work correctly.
Thank you in advanced.
0 commentaires
Réponse acceptée
Cris LaPierre
le 8 Mar 2022
Modifié(e) : Cris LaPierre
le 8 Mar 2022
You are trying to use a function or variable in your code that has not been defined or is not accessible. Double check the contents of your DefaultRoot.mat file. It appears to not contain a variable named DefaultRoot.
The error is easy enough to demonstrate by trying to use a variable that has not been created.
A = 1;
% Works
B=A
% Your error
b=a
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Computer Vision Toolbox 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!