EBK NUMERICAL METHODS FOR ENGINEERS
EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 8220100254147
Author: Chapra
Publisher: MCG
bartleby

Videos

Textbook Question
Book Icon
Chapter 9, Problem 16P

Develop, debug, and test a program in either a high-level language or macro language of your choice to multiply two matrices-that is, [ X ] = [ Y ] [ Z ] , where  [ Y ] is m by n and [ Z ] is n by p, Test the program using the matrices from Prob. 9.3.

Blurred answer
Students have asked these similar questions
Fix my MATLAB code. % Define unknown quantities in x-y system % abc = Acceleration of B wrt C on beam CD in i direction % vbc = Velocity of B wrt C on beam CD in i direction % xacd = Angular acceleration of beam CD in k direction % xvcd = Angular velocity of beam CD in k direction syms abc vbc xacd xvcd; % Create Unit Vectors in x-y coordinates i = [1,0,0]; j = [0,1,0]; k = [0,0,1]; % Create Unit Vectors in X-Y coordinates (R is rotation Matrix) Theta = 150; % Angle from X-axis to x-axis R = [[cosd(Theta),-sind(Theta), 0]; ... [sind(Theta), cosd(Theta), 0]; [0, 0, 1]]; XYZ = R*[i;j;k]; I = XYZ(1,:); J = XYZ(2,:); K = XYZ(3,:); % Set known quantities for Beam AB (no slider connection). xVab = -2.5*K; % Angular Velocity of Beam AB xAab = -3*K; % Angular Acceleration of Beam AB Rba = 0.2*(cosd(135)*I + sind(135)*J ); % Vector from A to B in X-Y % Calculate velocity and acceleration of point B % due to rotation of Beam AB (no slider connection). Vb1 = cross(xVab,Rba); Ab1 =…
I am trying to find a Direction Cosine Matrix (DCM) for the Euler angle body 1-2-3 sequence. I tried making my own function and using the MATLAB function, but the result is matrices that are not equal to each other. But, if I were to use the 'ZYX' sequence, I would get a matrix that is equal to the transpose of the matrix produced by my function.I mean that transpose(EA123toDCM) = E123toDCM if I changed the sequence to 'ZYX'. I never got two equal matrices. Can you fix my code so I would get two equal DCM matrices for the body 1-2-3 sequence? Also, for the E123toDCM line, I am using the sequence 'XYZ'. Is that correct or should it be 'ZYX'? I know that that for a DCM of sequence 1-2-3 = R3(theta1)*R2(theta2)*R1(theta3). Is ZYX sequence the same as a 1-2-3 sequence?   EA = [pi/3; -pi/4; -pi/6];EA123toDCM = EA123DCM(EA) E123toDCM = angle2dcm(EA(1,1), EA(2,1), EA(3,1), 'XYZ')   function [R] = EA123DCM(EA)     theta1 = EA(1,1);    theta2 = EA(2,1);    theta3 = EA(3,1);            R1 =…
What is the return type of angles function in MATLAB ?

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
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
Linear Transformations on Vector Spaces; Author: Professor Dave Explains;https://www.youtube.com/watch?v=is1cg5yhdds;License: Standard YouTube License, CC-BY
Linear Equation | Solving Linear Equations | What is Linear Equation in one variable ?; Author: Najam Academy;https://www.youtube.com/watch?v=tHm3X_Ta_iE;License: Standard YouTube License, CC-BY