Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

not sholve ani down vote

Answered: 1 week ago

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Influences on Nonverbal Communication?

Answered: 1 week ago