Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Mechanical Engineering Expert

you will be creating functions in SciLab. You will turn in electronically, each of the functions requested below. This is not a group project, so do your own work. Contact me if you have any questions.

1.) In homework 7 you wrote a script file to solve for three unknowns using matrix operations. For this homework I would like you to write a function that can take in two matrix of any size and solve the system of equations using matrix operation.

a. The function will take in two matrix and output one matrix. i. function [Solution] = solveEQ(AA, BB)

b. First check the size of the two input matrix and determine if they are the right size to be used for solving the unknowns.

i. Determine if AA is a square matrix. If not output "AA is not square".

ii. Determine if BB is a column matrix and has the same number of ?columns as AA. If not output "BB is not a column matrix" or "BB is ?not the right size"

c. If the size of the matrix is acceptable then perform the matrix operation ?and output the resulting vector.

2.) Suppose you know the lengths and the angle (in degrees) between two adjacent sides of a triangle, as shown in the drawing below. You can find the area of the triangle using the following relationship: TriArea = 1⁄2 * a * b * sin(x)

a. Write a function that will take in a matrix in the form of [length_a1, length_b1, angle1; length_a2, length_b2, angle2; ...]. Use a FOR loop to calculate the area of each of the triangles and output a column matrix in the form of [area1;area2;...].

b. function[Area]=TriArea(AB)

 

1782_112.jpg

Mechanical Engineering, Engineering

  • Category:- Mechanical Engineering
  • Reference No.:- M92093350
  • Price:- $100

Priced at Now at $100, Verified Solution

Have any Question?


Related Questions in Mechanical Engineering

Expansion processes of a perfect gasassignment1 attend the

Expansion Processes of a Perfect Gas Assignment: 1. Attend the laboratory class and complete the lab tests according to the supervisor's requirement. Students will not allowed to submit their report if they do not come t ...

Assignment -q1 explain the difference between the

Assignment - Q1. Explain the difference between the metacentric height of a ship during 'Partially Afloat condition and 'Free Floating' condition; aid a sketch to support your answer. Q2. With the aid of sketches, explai ...

5star questions amp answers1a define heat treatment bname

5 STAR QUESTIONS & Answers 1. A) Define Heat treatment B) Name different types of heat treatment processes C) Write any 4 purposes of Heat treatment 2. Explain various Heat treatment processes 3. A) Compare Thermo plasti ...

Problem on shaft -assuming no frictional losses a torque of

Problem on Shaft - Assuming no frictional losses, a torque of T = 750lb·in is applied through the shaft of gear F in order to drive the roller chain at point B at a constant speed. The chain sprocket has a pitch diameter ...

Projectflow processing of liquor in a mineral refining

Project Flow Processing of Liquor in a Mineral Refining Plant The aim of this project is to design a flow processing system of liquor (slurry) in a mineral (aluminum) refining plant. Aluminum is manufactured in two phase ...

Assignment - machine learning for signal processingproblem

Assignment - Machine Learning for Signal Processing Problem 1: Instantaneous Source Separation 1. As you might have noticed from my long hair, I've got a rock spirit. However, for this homework I dabbled to compose a pie ...

1 explain the term critical equipment and provide two clear

1. Explain the term "critical equipment" and provide two clear examples of machinery which falls into this category on board a twin screw motor vessel. 2. Explain the process of Charpy lmpact Testing including sample mar ...

Force exerted by jet on moving cart1 you need to determine

Force Exerted By Jet On Moving cart. 1. You need to determine the velocity of water that comes out from the nozzle of this system. need the equation please formulate the equation. 2. This water will strike a small cart a ...

Problem -a long pipe od 1413 mm id 1318 mm kp 20 wmk

Problem - A long pipe (OD = 141.3 mm, ID =131.8 mm, k p = 20 W/m.K) supplies hot pressurized liquid water at 400 K to a heater in a factory. The pipe has an insulation thickness of 100 mm. A new efficient heater replaces ...

Question - truss structureconsider the three membered

Question - Truss Structure Consider the three membered planar truss structure shown in the figure below. All members of the truss have identical square cross-sectional area (A) of 25 mm x 25 mm, and Youngs Modulus (E) = ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As