MATLAB : I get the error ‘Subscript indices must either be real positive integers or logicals.

Error in Mat­lab

Sub­script indices must either be real pos­i­tive inte­gers or log­i­cals.

SOLUTION
Issue was in me case, me vari­able had same name like func­tion max.
Exam­ple:

max = 100
A = [ 1 3 2 4; 1 2 3 6]
max (A) % max is func­tion in mat­lab

CAN HELP : www.mathworks.com

Face­book Com­ments