MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
5th Edition
ISBN: 9781118629864
Author: Amos Gilat
Publisher: WILEY
bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 19P

Create a vector (name it vet C) that has 12 elements of which the first is 5, the increment is 4 and the last element is 49. Then, by assigning elements of vctC to new vectors, create the following two vectors:

(a) A vector (name it Codd) that contains all the elements with odd index of vctC; i.e., Codd = 5 13 21 ... 45.

(b) A vector (name it Ceven) that contains all the elements with even index of vet; i.e., Ceven = 9 17 25 . . . 49.

In both parts use vectors of odd and even numbers for the index of Codd and Ceven, respectively. Do not type the elements of the vectors explicitly.

Blurred answer
Students have asked these similar questions
Write the vectors as a linear combination of ?⃗ 1,2,3
Create a column vector with 14 equally spaced elements in which the first element is 3 and the last element is -36
Express EC by combinations of the vectors a, b and 7.

Chapter 2 Solutions

MATLAB: An Introduction with Applications

Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Vector Components and Projections in 3-Dimensions; Author: turksvids;https://www.youtube.com/watch?v=DfIsa7ArxSo;License: Standard YouTube License, CC-BY
Linear Algebra 6.2.2 Orthogonal Projections; Author: Kimberly Brehm;https://www.youtube.com/watch?v=fqbwErsP8Xw;License: Standard YouTube License, CC-BY