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

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 34P

Create the following vector A.

A= [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]

Then using the MATLAB’s built-in reshape function create the following matrix B from the vector A:

B = 1 4 7 10 13 16 2 5 8 11 14 17 3 6 9 12 15 18

By writing one command and using the colon to address range of elements (do not type individual elements explicitly), use the matrix B to:

  1. Create a nine-element column vector named Ba that contains the elements of the first, third, and fifth columns of B.
  2. Create a seven-element row vector named Bb that contains elements 2 through 5 of the second row of B and the elements of the third column of B.
  3. Create a six-element row vector named Be that contains elements 3 through 5 of the first row, and elements 2 through 4 of the third row of B.

Blurred answer

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.
Recommended textbooks for you
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
Vector Spaces | Definition & Examples; Author: Dr. Trefor Bazett;https://www.youtube.com/watch?v=72GtkP6nP_A;License: Standard YouTube License, CC-BY
Understanding Vector Spaces; Author: Professor Dave Explains;https://www.youtube.com/watch?v=EP2ghkO0lSk;License: Standard YouTube License, CC-BY