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