Question: Consider the two vectors yl= [1,8,-5,9,-3,4]; y2 = [-5,4,2,-2,-8,9]. Explain the results of the following MATLAB expressions. 1. yl(y2 < 0) 2. y2(y1 0)

Consider the two vectors yl= [1,8,-5,9,-3,4]; y2 = [-5,4,2,-2,-8,9]. Explain the results

Consider the two vectors yl= [1,8,-5,9,-3,4]; y2 = [-5,4,2,-2,-8,9]. Explain the results of the following MATLAB expressions. 1. yl(y2 < 0) 2. y2(y1 0) 4. yl( (y1 = 4)) 5. yl( (yl = 4)))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

heres a breakdown of the MATLAB expressions you provided and their corresponding results 1 y1y2 0 This expression extracts elements from y1 based on a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!