Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 worksStep 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