MATLAB: Am getting the error ‘ Array indices must be positive integers or logical values.

MATLAB

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

Best Answer

  • xander = 1/n * h1 * (sum(kiki * (([m{:}] - numel(Test)/h1))));
    % ^ missed