Problem 1957. Check if equal
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Soobok
on 4 Nov 2020
function y = checkIfequal(x)
for i = 1 : length(x(1:end))-1
if x(i)==x(i+1)
y=logical(1)
else
y=logical(0)
break
end
end
Problem Recent Solvers215
Suggested Problems
-
446 Solvers
-
408 Solvers
-
588 Solvers
-
Matlab Basics - Switching Assignments
187 Solvers
-
895 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!