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:

Question

# X_input =[-1, 2, -6, 10];x=X_input; style="color:rgb(4,51,255);">if isnumeric(x)==1&x<-2  y=acos(sin(x/2))elseif isnumeric(x)==1&x>=-2&x<1  y=2*x^2elseif isnumeric(x)==1&x>=1&x<5  y=log10(x)elseif isnumeric(x)==1&x>=5  y=2elseif ischar(x)==1  y=lower(x)elseif islogical(x)==1  y=~x  Y_output=yendIf 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?

### 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