Undefined variable "database1" or class "database1.X"

I am working with a database , which is a struct , which I load in the workspace . When I am referring to a class database1.X, I have the error " Undefined variable "database1 " or class " database1.X ""
The loaded database does exist in the workspace. Even the command " exist database1" works fine, and returns 1.
Have any idea?
Thanks.

 채택된 답변

Walter Roberson
Walter Roberson 2013년 11월 18일

0 개 추천

Perhaps the variable is in a different workspace than where you are trying to use it. For example perhaps you loaded it into the base workspace, but are trying to use it inside a function without passing it in to the function.

댓글 수: 1

Calin O
Calin O 2013년 11월 18일
It worked if I passed it to the fct as an argument. Thanks.

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

추가 답변 (0개)

카테고리

질문:

2013년 11월 18일

댓글:

2013년 11월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by