Am getting the error ' Array indices must be positive integers or logical values.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
madhan ravi
il 18 Mag 2019
Modificato: madhan ravi
il 18 Mag 2019
xander = 1/n * h1 * (sum(kiki * (([m{:}] - numel(Test)/h1))));
% ^ missed
5 Commenti
madhan ravi
il 18 Mag 2019
I can’t read your mind Tino as suggested try .* , if not tell what the size of the variables are.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!