Effacer les filtres
Effacer les filtres

I am unable to perform the function "load('neuralnet.mat');" using MATLAB 2012a

1 vue (au cours des 30 derniers jours)
clear all; clc; clf; close all;
tic
sets =10;
iterations=1;
trials=1;
pop = zeros(12,sets);
for i=1:sets
pop1=randi([10,4000],12,1);
addi =sum(pop1);
while addi <= 24000
pop1= randi([10,4000],12,1);
addi = sum(pop1);
end
if addi>=24000
pop(:,i)=pop1;
end
end
ymin=0;
a =sum(pop,1);
load('neuralnet.mat');
objvalue=sim(net,pop);
obj1=transpose(objvalue);
obj2=0;
yo=0;
[yi,q] =min(obj1);
gbest1 = pop(:,[q]);
I am unable to perform the function "load('neuralnet.mat');" using MATLAB 2012a what may the posible reason.
Apart from this I am getting the the following warning and error message respectivley.
Warning: An error occurred when running a class's loadobj
method. The object that was loaded from the MAT-file was a
copy of the object before the loadobj method was run. The
rest of the variables were also loaded from the MAT-file.
The encountered error was:
Error using nnupdate.net (line 36)
Cannot update network of unrecognized version.
> In annde at 21
Error using annde (line 22)
'model' parameter must be a string

Réponse acceptée

Walter Roberson
Walter Roberson le 25 Juin 2021
neuralnet.mat is not part of any Mathworks product, unless it is part of an example that I have not found yet.
You need to create it, or download it from somewhere relevant, such as
or get it from the author of https://pfigshare-u-files.s3.amazonaws.com/1470313/CAGUAetal_revised_20140418.pdf ("Acoustic Monitoring of Blast Fishing")

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by