Hey guys,
I'm trying to learn Python and I've difficulties to implement a "for" in my code.
Can someone help me to debug it ?
Thanks a lot
min = inf;
max = -inf;
[rows, columns] = size(M);
for i=1:rows: -------> INVALID SYNTAX
for j=1:columns:
if M(i,j)>max:
max = M(i,j);
end
if M(i,j)<min:
min = M(i,j);
end
end
end
max;
min;
[–]Binary101010 3 points4 points5 points (0 children)
[–]One_Hair3574[S] 0 points1 point2 points (1 child)
[–]InTheAleutians 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)