Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 3 (20 points) Consider the following vector vec: vec = [-11 5 3 2-184-55,-66] , The vector vec erroneously stores positive values. We would

image text in transcribed
Task 3 (20 points) Consider the following vector vec: vec = [-11 5 3 2-184-55,-66] , The vector vec erroneously stores positive values. We would like to eliminate those positive values so that we are left with the following values for vec: vec-11-18-5661 Your task is to determine where the positive values are and then to delete them from the elements of vec. You must present two methods to achieve the task: a) using the built-in Matlab function find and create new vector called vec1, b) using a logical vector and create new vector called vec2

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

=+is irrational.

Answered: 1 week ago

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago