MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 21P
Create a row vector vC=2 :3 :38 that has 13 elements. Then, create the following new vectors by assigning elements of vC to the new vectors:
(a) A vector (name it vCodd) that contains all the elements with odd index of vC; i.e., vCodd =2 8 14… 38.
(b) A vector (name it vCeven) that contains all the elements with even index of vC; i.e., vCeven =5 11 17 ... 35.
In both parts use vectors of odd and even numbers to address the elements of vC that are assigned to vCodd, and vCeven, respectively. Do not enter the elements of the vectors explicitly.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
express as a vector
Determine whether each vector can be used as a primary combination of vectors in S.
Please write in alphabetical words
Calculate the area of the parallelogram determined by the points (-1 , -1), (2 , 4), (4 , 3) and (7 , 8). Using matrices.
Chapter 2 Solutions
MATLAB: An Introduction with Applications
Ch. 2 - Prob. 1PCh. 2 - Create a variable b that is a row vector with the...Ch. 2 - Create a variable c that is a colums vector with...Ch. 2 - Create a variable d that is a column vectorwith...Ch. 2 - Define the variables x= 3.4 and y= 5.8, and then...Ch. 2 - Define the variables c = 4.5 and d = 2.8, and then...Ch. 2 - Create a variable g that is a row vector in which...Ch. 2 - Create a variable h that is a row vector with...Ch. 2 - Create a variable M that is a column vector in...Ch. 2 - Create a variable N that is a column vector with...
Ch. 2 - Using the colon symbol, create a row vector...Ch. 2 - Using the linspace command, create a row vector...Ch. 2 - Using the colon symbol, create a variable named...Ch. 2 - Use a single command to create a row vector...Ch. 2 - Use a single command to create a row vector...Ch. 2 - Use a single command to create a row vector...Ch. 2 - Create two row vectors v=41:-3:29 and w=17:4:37....Ch. 2 - Create two column vectors T= [5:5:25]’ and S=...Ch. 2 - Create a row vectors A=4:3:13 and a column vector...Ch. 2 - Create a row vector vA=1: 3 : 34 that has 12...Ch. 2 - Create a row vector vC=2 :3 :38 that has 13...Ch. 2 - Create two row vectors vD=20 :4 :44 and vE=50 :3...Ch. 2 - Create a nine-element row vector vF=5 : 7: 61....Ch. 2 - Create the following matrix by assigning vectors...Ch. 2 - Create the following vector by using the linspace...Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following three row vectors: a=[58102]...Ch. 2 - Create the following three row vectors: a= [5 8 -1...Ch. 2 - Create the following to row vectors: d=[6-1 4 0 -2...Ch. 2 - Prob. 34PCh. 2 - Create the following vector: V=[5 0 -3 7 6 -1 2 8...Ch. 2 - Create the following vectors: u= [0 9 -5 6 3 -1 2]...Ch. 2 - Create the following matrix M: M= 1 7 13 19 25 3 9...Ch. 2 - Create the following matrix N: N= 0 3 6 9 12 15 18...Ch. 2 - Create the following matrix G: G= 0.1 0.2 0.3 0.4...Ch. 2 - Create the following matrix K: K= 0.25 0.5 0.75...Ch. 2 - The following matrix is defined in MATLAB: S= 1 2...Ch. 2 - The following matrix is defined in MATLAB: T= 2 4...Ch. 2 - By hand (pencil and paper) write what will be...Ch. 2 - Using the zeros, ones, and eye commands, create...Ch. 2 - Use the eye, ones, and zeros command to create the...
Knowledge Booster
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
- Let A be an nn matrix in which the entries of each row sum to zero. Find |A|.arrow_forwardFind the sequence of the elementary matrices whose product is the non singular matrix below. [2410]arrow_forwardOrthonormalize the following set of three vectors: {(1, -1, 2), (1, 3, 1), (1, 0, 2)}. Please use legible handwriting and also please explain each step clearly. Thank you!arrow_forward
- Use matlab please. And if possible, add comments also.arrow_forwardSuppose P1=(1,1), P2=(3,3), and P3=(5,6). Then, what is the numeric value of the cross product AxB of the vector A=P1P2 with the vector B=P2P3 ? Give a number as an answer. Ex. 73 or -123arrow_forwardPlease use matrix to solve.arrow_forward
- -3 -3 9. Let A =-3 -6 12 and b = -3 -2 13 Denote the columns of A by a1, a2, a3, and let W = span (a], a2, a3}. Select Answer 1. Determine if b is in W Select Answer 2. Determine if b is in (a1, a2, a3) How many vectors are in (a1, a2, a3)? (For infinitely many, enter -1) How many vectors are in W? (For infinitely many, enter -1)arrow_forwardUse these 3 vectors ?⃗ = (-2, -12, 4), ? = (3, -2, 1), ?⃗ = (8, 12, -4) to verify the the associative propertyarrow_forwardLet A be an m x n matrix and let b and c be column vectors with n components. Express the dot product (Ab) * (Ac) as a product of matrices.arrow_forward
- What are free columns?arrow_forwardAre the vectors -6 -9x+9x², 3x - 12 + 6x² and 10+ x - 7² linearly independent? choose If the vectors are independent, enter zero in every answer blank since zeros are only the values that make the equation below true. If they are dependent, find numbers, not all zero, that make the equation below true. You should be able to explain and justify your answer. 0= (-6-9x + 9x²)+| (3x - 12+ 6x²)+ (10 + x - 7x²).arrow_forwardF) Create 3x5 matrix named MA and then eliminate all the rows of columns 2 through 4. A.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageElementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Matrix Factorization - Numberphile; Author: Numberphile;https://www.youtube.com/watch?v=wTUSz-HSaBg;License: Standard YouTube License, CC-BY