renaming mat file results in error

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)

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

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

Asked:

on 9 Jan 2012

Community Treasure Hunt

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

Start Hunting!