Question: Who can help me to solve it by Matlab? 1) a) Write a Matlab script which accepts a vector yec' as input, and USING LOGICAL

Who can help me to solve it by Matlab?

Who can help me to solve it by Matlab? 1) a) Write

1) a) Write a Matlab script which accepts a vector yec' as input, and USING LOGICAL VECTORS - determines how many negative entries are in vec, how many positive entries there are in vec, and how many 0 entries there are in yec, and then displays these answers as a 3 entry vector. Test your script 5 times using yecrandi(I-3,3],10,1). Make sure to also display vec so ILwe can check to see if your script works! b) Write a Matlab script which accepts a vector 'w' as input, and -USING LOGICAL VECTORS-returns a vector consisting of only those entries from w which are at least 10. Test your script 5 times using w-randi([5,20],10,1). Make sure to also display w so I/we can check to see if your script works

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!