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

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 2, Problem 1P
To determine

To create:

A row vector with the following elements: 8,104,12×1.4,51,tan85°,26 and 0.15.

Expert Solution & Answer
Check Mark

Answer to Problem 1P

Solution:

The created row vector is:

Row=[8.0000 2.5000 16.8000 51.0000 11.4301 5.0990 0.1500]

Explanation of Solution

The given row vector contains following elements: 9,1,32,7/4,0,2.25×8.5,0.8 and sin(π/8).

Simplify the given row vectoras:

8=8104=2.512×1.4=16.851=51

tan85°=11.430126=5.09900.15=0.15

Hence, the created row vector is:

Row=[8.0000 2.5000 16.8000 51.0000 11.4301 5.0990 0.1500]

Write the MATLAB script that creates a row vector with the following elements: 8,104,12×1.4,51,tan85°,26 and 0.15.

MATLAB Code:

%MATLAB code to create a row vector a.

a_row = [8 10/4 12*1.4 51 tand(85) sqrt(26) 0.15]

Save the MATLAB script with the name, chapter2_29864_2_1P.m in the current folder. Execute the script by typing the script name at the command window to get the answer for a row vector with the following elements: 8,104,12×1.4,51,tan85°,26 and 0.15.

Result:

MATLAB: An Introduction with Applications, Chapter 2, Problem 1P

Conclusion:

Therefore, the created row vector is:

Row=[8.0000 2.5000 16.8000 51.0000 11.4301 5.0990 0.1500].

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

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
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
How to find the magnitude and direction of a given vector; Author: Brian McLogan;https://www.youtube.com/watch?v=4qE-ZrR_NxI;License: Standard YouTube License, CC-BY
Linear Algebra for Computer Scientists. 2. Magnitude of a Vector; Author: Computer Science;https://www.youtube.com/watch?v=ElnuSJyUdR4;License: Standard YouTube License, CC-BY