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 36P
Create the following
u= [0 9 -5 6 3 -1 2] and w= [-2 3 7 -4 0 1 5]
By hand (pencil and paper) write what will be displayed if the following commands are executed by MATLAB. Check your answers by executing the commands with MATLAB.
(a) A= [u(2:5);w([7 5) u([6 7])]
(b) B=[w(4:7)’, zeros(4,2), u([1 3 5 7])’]
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Write the following equation using vectors and matrices
x + y = -z
4x = 3
-6x + 5y + z = 7
Write the following as vectors and matrices
x + y = - z
4x = 3
-6x+ 5y + z = 7
2.
Write 3
as a linear combination of the vectors
+
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
- Draw the following vectors in standard position in 2 : aa=30bb=23cc=23dd=32arrow_forwardGiven that -2 1 0 0 -1 -1 -4 0. 0 2 1 -1 -1] 1 3 -2 write -4 as a linear combination of the vectors -1 -1 + +arrow_forward2. 4 Compute w• w, x•w, and using the vectors w = w• w - 1 - 3 and x = w•w = (Simplify your answer. Type an integer or a simplified fraction.) X•w = (Simplify your answer. Type an integer or a simplified fraction.) w• w (Simplify your answer. Type an integer or a simplified fraction.)arrow_forward
- Solve the following exercises, you will need to show all your work to receive full credit. Consider the matrix, 2 1 -2 2 3 -4 1 1 1 - Knowing that f(t) = (t – 1)²(t - 2) is the characteristic polynomial, do the following: 1. find a basis of eigenvectors; 2. Find P such that P- AP is a diagonal matrix D. Give Darrow_forward3. If a = 3x - 5ỹ and b = -2x +9y, write the vector 5a-86 in terms of x and yarrow_forwardWrite down the quadratic form that corresponds to the following matrixarrow_forward
- 1 4 7 Determine whether the set of vectors 9 is linearly dependent or not. If so, find a way to write the third vector as a linear combination of the other two. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BI U S Paragraph Arial 14px x? X2 ABC +, -arrow_forward4 -2 -6 -3 1. Let A 8 2 -3 0 2 5 3 Answer the following. If you use technology, your explanations should only rely on the rref() and/or multiplication commands on Sage or another CAS (you can use other commands to check your work). a) Find a non-zero vector in R4 that is an element of Col(A) and not an element of Nul(A) or explain why it's not possible to do so. If you do find such a vector, explain both why it is an element of Col(A) and why it is not an element of Nul(A)– these general instructions apply for all parts of the problem. -3arrow_forwarda. Write the vector (-5, 15, 12) as a linear combination of a1 = (2, –5, 1), ā2 = (1, –1, –5) and āz = (5, –4, -5). Express your answer in terms of the named vectors. Your answer should be in the form 4a, + 5a2 + 6ã3, which would be entered as 4a1 + 5a2 + 6a3. (-5, 15, 12) = b. Represent the vector (-5, 15, 12) in terms of the ordered basis B = {(2, –5, 1) , (1, –1, –5), (5, –-4, –5)}. Your answer should a vector of the general form . [(-5, 15, 12)]3arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Inner Product Spaces; Author: Jeff Suzuki: The Random Professor;https://www.youtube.com/watch?v=JzCZUx9ZTe8;License: Standard YouTube License, CC-BY