フィルターのクリア

Using Workspace variables in a GUI matlab

12 ビュー (過去 30 日間)
alladin
alladin 2015 年 1 月 29 日
コメント済み: alladin 2015 年 1 月 30 日
I have a workspace called *finalnet*. Inside the workspace i have a neural network called *net*. and I want to use the network in one of the functions in my GUI.
Is there a way to do that?
I tried to use *evalin* function : `network = evalin('finalnet','net')`
but i get this error:
> Error using evalin Unknown command option.

採用された回答

Sean de Wolski
Sean de Wolski 2015 年 1 月 29 日
編集済み: Sean de Wolski 2015 年 1 月 29 日
doc evalin
The first input to evalin should be "Where should it eval in?"
I don't see how you can define a workspace. It'll either be in the 'base' workspace or the 'caller' workspace. Otherwise, you'll need to re-architect it so that it is.
network = evalin('base','net');
  1 件のコメント
alladin
alladin 2015 年 1 月 30 日
Exactly what i want. thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by