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 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
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
Get step-by-step solutions from verified subject matter experts
