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 two most distant points
1648 Solvers
760 Solvers
2605 Solvers
Matlab Basics - Pick out parts of a vector
202 Solvers
Determine if input is divisible by three.
165 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!