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
Back to basics 25 - Valid variable names
294 Solvers
Remove the two elements next to NaN value
418 Solvers
494 Solvers
286 Solvers
276 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!