Question: Problem 02: Write a MATLAB script check02 that prompts for user input of a vector Yin and displays on the screen two vectors Yplus and

 Problem 02: Write a MATLAB script check02 that prompts for user

Problem 02: Write a MATLAB script check02 that prompts for user input of a vector Yin and displays on the screen two vectors Yplus and Yminus such that Yplus and Yminus contain the positive and negative values entered in Yin, respectively. In case one of these two output vectors does not have any element (that is empty), it will show an empty matrix. Test your code with: (a) [18, -5, 89, -7, 4, 10, 12, 34, -2, 45] ; (b) [34, 67, 89, 0, 12, 87, 0, 5]; Note: initialize vectors Yplus and Yminus as 0-by-0 empty matrices using: >> Yplus [ ]; Yminus [ ] = =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!