MATLAB : PROBLEM WITH CELLFUN AND TWO VARIABLES FUNCTION.
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Emiliano Rosso
am 28 Okt. 2017
Kommentiert: Emiliano Rosso
am 3 Nov. 2017
temptemp is 1 X 44 cell : every cell is 1 X 3130 array double.
tempwmul is 1 X 44 cell : every cell is 1 X 1 trained network.
I want to simulate every network with the relative array double :
for ilog=1:44
tempoutemp{ilog} = sim(tempwmul{ilog},temptemp{ilog});
end
in vectorized mode using cellfun :
tempoutemp=cellfun(@sim,tempwmul,temptemp,'UniformOutput', false);
The code doesn't return errors but in vectorized mode it uses always the first network for all array data and result is obviously different...some help?
0 Kommentare
Akzeptierte Antwort
Roman Müller-Hainbach
am 2 Nov. 2017
Try this:
tempoutemp = cellfun( @(network,arr)sim(network,arr), tempwmul,temptemp, 'un',0 );
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!