Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving
Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving
4th Edition
ISBN: 9780128045251
Author: Stormy Attaway Ph.D. Boston University
Publisher: Elsevier Science
bartleby

Videos

Question
Book Icon
Chapter 2, Problem 42E
Expert Solution & Answer
Check Mark
To determine

To create:

• The variable for the given matrix A=[1432] and perform the operation “3*A”.

• The variable for the given two matrices A=[1432] and C=[325412] and perform the operation “A*C”.

• Whether other multiplication operation can be performed in part 2 or not.

Answer to Problem 42E

Solution:

• The variable for the given matrix A=[1432] is “A = [1 4; 3 2]”, and the output of the operation “3*A” is [31296].

• The variable for the given two matrices A=[1432] and C=[325412] are “A = [1 4; 3 2]” and “C = [3 2 5; 4 1 2]”. The output of the operation “A*C” is [1961317819].

• The variable for the given two matrices C=[325412] and B=[213156360] are “C = [3 2 5; 4 1 2]” and “B = [2 1 3; 1 5 6; 3 6 0]”. So the other multiplication is possible and the output of the operation “C*B” is [234321152118].

Explanation of Solution

• The variable for the given matrix A=[1432] and perform the operation “3*A”.

The given matrices are,

A=[1432]

B=[213156360]

And,

C=[325412]

Substitute [1432] for A in the expression “3*A”.

3*A=3[1432]=[1×34×33×32×3]=[31296]

Therefore, the elements of the matrix “3*A” are [31296].

Now, verify the expression output through the MATLAB command.

MATLAB Code:

A = [1 4; 3 2]

% Define the command to get the matrix “A”.

3*A

% Define the command to get the output of the expression “3*A”.

Save the MATLAB script with name, chapter2_45251_2_42_1E.m in the current folder. Execute the script by typing the script name at the command window to create the variable for the given matrix A=[1432] and perform the operation “3*A”.

Result:

Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving, Chapter 2, Problem 42E , additional homework tip  1

Therefore, the variable for the given matrix A=[1432] is “A = [1 4; 3 2]”, and the output of the operation “3*A” is [31296].

• The variable for the given two matrices A=[1432] and C=[325412] and perform the operation “A*C”.

The given matrices are,

A=[1432]

B=[213156360]

And,

C=[325412]

Substitute [1432] for A and substitute [325412] for C in the expression “A*C”.

A*C=[1432][325412]=[(1×3)+(4×4)(1×2)+(4×1)(1×5)+(4×2)(3×3)+(2×4)(3×2)+(2×1)(3×5)+(2×2)]=[1961317819]

Therefore, the elements of the matrix “A*C” are [1961317819].

Now, verify the expression output through the MATLAB command.

MATLAB Code:

A = [1 4; 3 2]

% Define the command to get the matrix “A”.

C = [3 2 5; 4 1 2]

% Define the command to get the matrix “C”.

A*C

% Define the command to get the output of the expression “A*C”.

Save the MATLAB script with name, chapter2_45251_2_42_2E.m in the current folder. Execute the script by typing the script name at the command window to create the variable for the given two matrices A=[1432] and C=[325412]. Perform the operation “A*C”.

Result:

Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving, Chapter 2, Problem 42E , additional homework tip  2

Therefore, the variable for the given two matrices A=[1432] and C=[325412] are “A = [1 4; 3 2]” and “C = [3 2 5; 4 1 2]”. The output of the operation “A*C” is [1961317819].

• Whether other multiplication operation can be performed in part 2 or not.

The given matrices are,

A=[1432]

B=[213156360]

And,

C=[325412]

Substitute [213156360] for B and substitute [325412] for C in the expression “C*B”.

C*B=[325412][213156360]=[(3×2)+(2×1)+(5×3)(3×1)+(2×5)+(5×6)(3×3)+(2×6)+(5×0)(4×2)+(1×1)+(2×3)(4×1)+(1×5)+(2×6)(4×3)+(1×6)+(2×0)]=[234321152118]

Therefore, the elements of the matrix “C*B” are [234321152118].

Now, verify the expression output through the MATLAB command.

MATLAB Code:

C = [3 2 5; 4 1 2]

% Define the command to get the matrix “C”.

B = [2 1 3; 1 5 6; 3 6 0]

% Define the command to get the matrix “B”.

C*B

% Define the command to get the output of the expression “C*B”.

Save the MATLAB script with name, chapter2_45251_2_42_3E.m in the current folder. Execute the script by typing the script name at the command window to create the variable for the given two matrices C=[325412] and B=[213156360]. The other multiplication operation that can be performed are “C*B”.

Result:

Matlab, Fourth Edition: A Practical Introduction to Programming and Problem Solving, Chapter 2, Problem 42E , additional homework tip  3

Therefore, the variable for the given two matrices C=[325412] and B=[213156360] are “C = [3 2 5; 4 1 2]” and “B = [2 1 3; 1 5 6; 3 6 0]”. So the other multiplication is possible and the output of the operation “C*B” is [234321152118].

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!
Students have asked these similar questions
or Testing a claim about a population mean: t-Test An overly involved "neighborhood watch" group has been investigating the length of lawns. In years past, lawns had been mowed to a mean length of 2.4 inches. A recent random sample of lawn lengths is given below. Conduct an appropriate test, at a 5% significance level, to determine if the overall mean lawn length is now higher than 2.4 inches. Data (lawn lengths, measured in inches): 4.35 3.73 3.35 2.75 2.96 1.97 2.02 3.68 3.61 3.87 3.92 4.50 3.66 3.60 3.01 4.34 4.23 4.95 2.97 Checksum: 67.47 Click Download CSV to download csv file of data or copy/paste the data into Excel. After downloading the file, you may want to save it as an Excel Workbook. A. Consider the parameter of interest and choose the correct alternative hypothesis. Ομ = 2.4 Ο μ > 2.4 Op 2.4 Ομ < 2.4 Ομ Σ 2.4 Ομ 5 2.4 B. Are the necessary conditions present to carry out this inference procedure? Explain in context. Yes. Our sample was not larger than 30 in size, but the…
Proctor ents ources Sources button below for formula and a similar problem. A researcher believes a new diet will have a positive impact on the health of adult lab mice but the effects on the weight of the mice are unknown. A sample of 10 mice was obtained and the mice were weighed before and after the diet treatment. Listed below are the measurement results: Click this button to reveal the data. Click again to collapse it. Mouse Before(g) After(g) Difference(g) 1 37.8 37.5 0.3 2 38.2 37.6 0.6 3 36.6 35.2 1.4 4 36.6 35.4 1.2 5 37.6 37.1 0.5 6 38.1 37.3 0.8 7 36.4 35 1.4 8 35.9 34.6 1.3 9 35.3 34.9 0.4 10 40.1 39.2 0.9 Click this button to reveal the summary of data. Click again to collapse it. Average Standard deviation Before(g) After(g) Difference(g) 37.26 1.39 36.38 1.55 0.88 0.42 Click Download CSV to download csv file of data or copy/paste the data into Excel. After downloading the file, you may want to save it as an Excel Workbook. Use 5% level of significance to decide whether…
Does 10K running time increase when the runner listens to music? Nine runners were timed as they ran a 10K with and without listening to music. The running times in minutes are shown below. With Music Without Music Running Time 57 40 39 60 58 47 50 42 45 58 36 39 51 56 50 52 41 41 Assume a Normal distribution. What can be concluded at the the a 0.10 level of significance? For this study, we should use t-test for the difference between two dependent population means o search a. The null and alternative hypotheses would be: Houd 0 (please enter a decimal) H₁ ud 0 (Please enter a decimal) b. The test statistic = (please show your answer to 3 decimal places.) c. The p-value (Please show your answer to 4 decimal places.) d. The p-value is >v a e. Based on this, we should fail to reject f. Thus, the final conclusion is that ... the null hypothesis. The results are statistically significant at a = 0.10, so there is sufficient evidence to conclude M365 UP T DOLL
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
College Algebra
Algebra
ISBN:9781337282291
Author:Ron Larson
Publisher:Cengage Learning
Text book image
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Text book image
Elements Of Modern Algebra
Algebra
ISBN:9781285463230
Author:Gilbert, Linda, Jimmie
Publisher:Cengage Learning,
Text book image
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
Text book image
College Algebra
Algebra
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:9781305071742
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Matrix Factorization - Numberphile; Author: Numberphile;https://www.youtube.com/watch?v=wTUSz-HSaBg;License: Standard YouTube License, CC-BY