Engineering Your Future
Engineering Your Future
9th Edition
ISBN: 9780190279264
Author: William C. Oakes, Les L. Leone
Publisher: Oxford University Press, USA
Question
Book Icon
Chapter C, Problem C.6E
To determine

The ANSWER of the equation using MATLAB.

Expert Solution & Answer
Check Mark

Answer to Problem C.6E

y=0.510=9.5.

Explanation of Solution

Given:

y=0.5w,wherex=[2648210694].

x=[2648210694] and w=[56789].

Calculation:

Using matrices we can determine value of y=0.5w, before we must understand matrices.

It most popular applications for engineering curricula it like a vector, here we demonstrate some example how to use MATLAB for solving matrices. A vector is important type of a matrix which has single row or column. An instance of matrix is:

A=[957864421].

Every matrix has certain size depending on its number element exist in the column and rows, such as in above example size of A= 3×3 means three rows and three columns. The command which give size of matrix is size, for example it can be written in MATLAB command format “size(A)” then it would return “3 3” for above matrix.

We can find a position of each element in matrix as first column and first row means we could written as a11 and the value would be 9.

Suppose we require to take element such a1.1, a1.2, a2.1, and a22, and many more then we should enter as A(1:2,1:2)..

now come to given problem, x= [2 64 82 106 94] and w=[5 6 7 8 9]..

By using MATLAB, multiply matrices of same size x=1×1 and w=1×1.

Multiplying first row of first matrices and second matrices of first row then it results 10.

So y=0.510=9.5.

Some common method for multiplying two matrices shown below.

A=[a1,1a1,2a2,1a2,2]B=[b1,1b1,2b2,1b2,2].

A*B Becomes.

[a1,1a1,2a2,1a2,2] × [b1,1b1,2b2,1b2,2]= [(a1,1×b1,1+a1,2×b2,1)(a1,1×b1,2+a1,2×b2,2)(a2,1×b1,1+a2,2×b2,1)(a2,1×b1,2+a2,2×b2,2)].

Conclusion:

MATLAB follows the matrices rules so we must write in matrix form.

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!
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Text book image
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Text book image
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Text book image
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Text book image
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Text book image
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY