Why when i load workspace manually the code works but when i try to load it from code doesn't?
显示 更早的评论
Im trying to load some workspace variables for a neural network from code by using this
S0 = load('mynet.mat');
but when i run it i get this error:
Undefined function or variable 'myNet'.
Error in transfer (line 46)
nnet = myNet; % Load the neural net
If i am loading it manually and run it i have no problems. Why and how can i make it work from code?
3 个评论
Dennis
2018-7-4
You load your variable in a struct. Try
myNet=S0.myNet;
Niculai Traian
2018-7-4
Adam
2018-7-4
You can see your workspace in Matlab. Just take a look at it and you'll see your struct.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!