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
Find the peak 3n+1 sequence value
1122 Solvers
Project Euler: Problem 7, Nth prime
538 Solvers
Convert a numerical matrix into a cell array of strings
470 Solvers
Check if number exists in vector
4722 Solvers
324 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!