필터 지우기
필터 지우기

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 CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by