How to use variable present in workspace in GUI

Dear Sir I have created a NN program and i want to use this program in a GUI mfile. it creates a network, but the GUI does not use this.It does does the recognize the net, it says unknown parameter..."net"

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2011 年 12 月 14 日

0 投票

Perhaps you could try running this line to get the variable from the base workspace to the function workspace:
net = evalin('base', 'net');
Sean de Wolski
Sean de Wolski 2011 年 12 月 14 日

0 投票

Another way - setappdata/getappdata
doc setappdata
doc getappdata

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2011 年 12 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by