Concept explainers
Write a function named EvenSum that will accept a matrix of unknown size and return the sum of all elements at the intersection of even numbered rows and even numbered columns. Note that your function must work with any sixe matrix. Also note that if the matrix is a scalar or a
a. a for loop without using built-in functions like sum
b. direct matrix operations, no loops
EXAMPLE: For the matrix shown, A=EvenSum(Test); will place the value 13 in A.
The numbers added together are shown in red.
Want to see the full answer?
Check out a sample textbook solutionChapter 19 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- Find the determinant of the matrix using the formulas in number 1 then check your answer with shortcut solution in number 2. Please write the answer where I can clearly read the letters and numbers. Thank you. (Sometimes your x doesn’t read as x)arrow_forwardUse rotation about the current frame to calculate the transformation matrix for a rotation of 90° about yo axis and then 90° about zo axis.arrow_forwardFind the transformation matrix for the following transformations: 1) Rotate 45° about Xo-axis. (Xo, Yo, Zo) → (X₁, Y₁, Z₁); 2) Followed by a rotation of 90° about Xo-axis. (X₁, Y₁, Z₁)→ (X₂, Y₂, Z₂); 3) Followed by a rotation of 60° about Y₂-axis. (X₂, X2, Z2)→ (X3, Y, Z3); 4) Followed by a rotation of 60° about Z₂-axis. (X3, Y3, Z3) → (X, Y4, Z4). Note: give final answer in matrix multiplication form, no need to write out the elements of the matrices or multiply the matrices out. URALLY AND AFICIALLY LGarrow_forward
- 2 3 4 5 6 1. (Make a MatLab code) Using for loop, write a script that will generate the all following multiplication table at once: 4 6 8 10 12 5 7 9 11 10 14 18 22 10 13 16 20 26 32 17 21 34 42 26 52arrow_forwardWhat is the return type of angles function in MATLAB ?arrow_forwardManufacturing processesarrow_forward
- A frame moves along its n-axis a distance of 2 units and is then rotated about the o-axis an angle 60° followed by a rotation about the z-axis by 90°. It was then translated about the a-axis by 2 units and finally rotated about the x-axis by 45°. Construct the transformation matrix equation. Compute the total transformation performed by the frame. Compute the joint variables that had to be made if similar location and orientation were to be created using cylindrical and RPY configuration. The initial point is located at P=[5 3 4]^Tarrow_forwardQuestion 2 and 3 pleasearrow_forwardQ3: Write a program for reading one dimensional array X(I), then arrange its element ascending (4chai) then print matrix after change.arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY