필터 지우기
필터 지우기

What is the solution to this error?

조회 수: 2 (최근 30일)
Ruwaida Lawgali
Ruwaida Lawgali 2022년 3월 8일
댓글: Ruwaida Lawgali 2022년 3월 9일
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
negative image
What should I do, which lines need change to work correctly.
Thank you in advanced.

채택된 답변

Cris LaPierre
Cris LaPierre 2022년 3월 8일
편집: Cris LaPierre 2022년 3월 8일
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
B = 1
% Your error
b=a
Unrecognized function or variable 'a'.
  댓글 수: 2
Ruwaida Lawgali
Ruwaida Lawgali 2022년 3월 8일
Thank you
Ruwaida Lawgali
Ruwaida Lawgali 2022년 3월 9일
DefaultRoot=load('DefaultRoot.mat'); %-->DefaultRoot
D.Root =DefaultRoot;
it works.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by