does it exist a function built-in in matlab that checks if a column is all composed of ones? If it doesn’t exist, there are some ways to build a function that work to achieve that porpouse?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
all(A==1)should returntrueif it’s composed of only1s. Note that if you have any floating point precision errors, you should useall( abs(A-1) < eps ).