Am getting the error ' Array indices must be positive integers or logical values.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tino
am 18 Mai 2019
Bearbeitet: madhan ravi
am 18 Mai 2019
hi
Find the following code below
kiki = 2;
xander = 1/n * h1 (sum(kiki * (([m{:}] - numel(Test)/h1))));
I am getting the following error
Array indices must be positive integers or logical values.
Kindly help
Thanks in advance
Tino
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 18 Mai 2019
Bearbeitet: madhan ravi
am 18 Mai 2019
xander = 1/n * h1 * (sum(kiki * (([m{:}] - numel(Test)/h1))));
% ^ missed
5 Kommentare
madhan ravi
am 18 Mai 2019
I can’t read your mind Tino as suggested try .* , if not tell what the size of the variables are.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!