Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab 3) given a vector D =[ -4 ,-3 ,-2. -1. ,0. 1. ,2.,3. ,4] write an mfile named sirter.m, using iteration (for and/or while)

Matlab image text in transcribed
3) given a vector D =[ -4 ,-3 ,-2. -1. ,0. 1. ,2.,3. ,4] write an mfile named sirter.m, using iteration (for and/or while) and conditionals (if and/or else) to separate D into the following vectors. (1) posEven that contains + even numbers in D [2, 4] (ii ) negEven that contains -even numbers in D [-4, -2] (iii ) posOdd that contains +odd numbers in D [1, 3] (iii) negOdd that contains -odd numbers in D

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_2

Step: 3

blur-text-image_3

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago