renaming mat file results in error

9 views (last 30 days)
Ton Schomaker
Ton Schomaker on 9 Jan 2012
When I rename
load netBekenmacrofauna.mat netBekenmacrofauna;
UitvoerVissen=sim(netBekenmacrofauna,BekenStuur);
into
load netBekenvissen.mat netBekenvissen;
UitvoerVissen=sim(netBekenvissen,BekenStuur);
running the script results in error message in command window:
??? Undefined function or variable 'netBekenvissen'.
Error in ==> BekenneuralSIM at 120
UitvoerVissen=sim(netBekenvissen,BekenStuur);
Is there a workaround for this?
Ton Schomaker

Answers (1)

Jan
Jan on 9 Jan 2012
I guess, that the file netBekenvissen.mat does not contain a variable called netBekenvissen. You can test this by:
Data = load('netBekenvissen.mat');
disp(Data)
% UitvoerVissen=sim(Data.netBekenvissen, BekenStuur);
  1 Comment
Ton Schomaker
Ton Schomaker on 9 Jan 2012
I get this result:
>> Data = load('netBekenvissen.mat');
disp(Data)
netBekenmacrofauna: [1x1 network]
Nothing wrong I suppose...

Sign in to comment.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!