Error using minmax newff

3 views (last 30 days)
Ibnu Darajat
Ibnu Darajat on 9 Oct 2021
Answered: G A on 9 Oct 2021
this is my code about newff
filename = 'Book1.xlsx';
sheet = 2;
xlRange = 'D6:P16';
xlRange2 = 'P6:P17';
Data = xlsread(filename, sheet, xlRange);
data_latih = readcell(filename,'Sheet',sheet,'Range',xlRange);
target_latih = readcell(filename,'Sheet',sheet,'Range',xlRange2);
[m,n] = size(data_latih);
net = newff(minmax(data_latih),[10 1],{'logsig','purelin'},'traingdx');
but there is error
Error using minmax (line 26)
Data{1,1} is not numeric or logical.
Error in testes (line 17)
net = newff(minmax(data_latih),[10 1],{'logsig','purelin'},'traingdx');
what should I do?

Answers (1)

G A
G A on 9 Oct 2021
You are using char type variables, i.e filename
a = {'abc', 'aa', 'b'; 'abc1', 'aa1', 'b1'}
a =
2×3 cell array
{'abc' } {'aa' } {'b' }
{'abc1'} {'aa1'} {'b1'}
>> minmax(a)
Error using minmax (line 26)
Data{1,1} is not numeric or logical.
minmax returns two columns of minimuns and maximums of numeric data
doc minmax

Tags

Community Treasure Hunt

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

Start Hunting!