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
Which values occur exactly three times?
3834 Solvers
Is my wife right? Now with even more wrong husband
1244 Solvers
324 Solvers
275 Solvers
303 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!