X_input =[-1, 2, -6, 10]; x=X_input; if isnumeric(x)==1&x<-2 y=acos(sin(x/2)) elseif isnumeric(x)==1&x>=-2&x<1 y=2*x^2 elseif
View the step-by-step solution to:


X_input =[-1, 2, -6, 10];


style="color:rgb(4,51,255);">if isnumeric(x)==1&x<-2


elseif isnumeric(x)==1&x>=-2&x<1


elseif isnumeric(x)==1&x>=1&x<5


elseif isnumeric(x)==1&x>=5


elseif ischar(x)==1


elseif islogical(x)==1




If not all element in x satisfy the one of 'if',then there's no command could be executed.

what can i do to make every element in x which satisfy different 'if' executed respectively?

Top Answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question