Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve the problems clearly 2. Write a script as a user-defined function with the function name of Sol MatrixEq IYOUR WSU ID, to solve the

image text in transcribed
image text in transcribed
Solve the problems clearly
2. Write a script as a user-defined function with the function name of "Sol MatrixEq IYOUR WSU ID, to solve the given matrix equation, Ax-b, for x, by receiving two inputs, i.e, one for the matrix A, and the other for the matrix b. NOTE: you need to save this script as Sol_MatrixEq IYOUR WSU ID].m". You may want to review the lecture slides to solve the problem (Chap 03 Solve Linear Equations parts 1 and 2). Either inverse matrix or Gauss-Jordan elimination method approach should be fine. What is the solution, x, for given matrix equation? You need to solve the matrix equation in the command window by calling your function, "Sol MatrixEqIYOUR WSU IDJ" (see the templates below) (2 pt) 3 -1s functionSo1 MatrixEq TYOUR WSU ID] (A,b) YOUR SCRIPT SHOULD BE GIVEN HERE end >A-101:213:-3-1 :b 14:8 : Sol MatrixEq [YOUR WSU ID Numerical Methods for Engineers, ME 325, Fall 2018 3. Write a script as a user-defincd function with the function name of Cal Disp IYOUR WSU ID], to predict the displacement of your accelerating Ford Mustang in m, by receiving three inputs, i.e., one for the initial velocity, v~ [in m/s), the second for the acceleration, a [in ms, and the third for the travel time, [in s]. Assuming your Ford Mustang is moving in a straight line with a constant acceleration and initial position, Xo = 0 m. NOTE: you need to save this script as Cal_Disp IYOUR WsU IDL.m". You may want to review an article to solve the problemm What is the displacement of your Ford Mustang with the initial velocity, 2 m/s, acceleration, a-5m/s, and travel time,-3s? You need to calculate the displacement in the command window by calling your function, Cal Disp YOUR W SU IDI (see the templates below) (2 pt) function disp -Cal Disp[YOUR WSu IDI (v . a. t YOUR SCRIPT SHOULD BE GIVEN HERE] end Ca YOUR WSU IDIv o, a, t) center>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Understand how environmental scanning is practised.

Answered: 1 week ago