Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a MATLAB function check318 (Yin)that takes a vector Yin as input and returns a second vector Yout that contains only the negative values. It
Write a MATLAB function check318 (Yin)that takes a vector Yin as input and returns a second vector Yout that contains only the negative values. It will return an empty matrix if all elements are positive. See the attached worked example for help. >> y1 = [18, -5, 89, -7, 4, 10, 12, 34, -2, 451: >>y2 [34, 67, 89, 0, 12, 87, 0, 5] >> z1 = check318 (y1) -57 2 >> z2 = check318 (y2 )
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started