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?

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