Write a function that can take in two matrix of any size

Assignment Help Mathematics
Reference no: EM131438340

Assignment

For this assignment you will be creating functions in SciLab. You will turn in electronically, each of the functions requested below.

1.) 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 = ½ * 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)

1830_Triangle.jpg

Reference no: EM131438340

Questions Cloud

Resort fro dispute resolution : Explain why most business firms utilize litigation as a last resort fro dispute resolution. Suggest at least 2 options for avoiding a trip to court and why those options are preferable.
Calculate the amount of gasoline consumed : Automobiles have different fuel economies (mpg), and commuters drive different distances to work or school. Suppose that a state Department of Transportation (DOT) is interested in measuring the average monthly fuel consumption of commuters in a c..
Calculate the total contribution margin : Study the information provided below and consider each of the proposals independently: Calculate the total Contribution margin and Operating profit/loss per month if Proposal 1 is implemented
Job descriptions and job specifications : 1. How does a job analysis help managers do their jobs better? 2. How does a job analysis relate to job descriptions and job specifications? 3. Why is it beneficial to have someone from outside the organization conduct the job analysis?
Write a function that can take in two matrix of any size : Write a function that can take in two matrix of any size and solve the system of equations using matrix operation. The function will take in two matrix and output one matrix.
How a technology like rfid could enhance the approach : Submit an executive summary on the specific industry and business problem that you are going to do your research paper on. The summary should contain enough of a detailed description of the business problem that someone unfamiliar with the specif..
Kimberley clarc healthcare and 3m healthcare : If you can please answer sourcing data from the industry ie Johnson and Johnson, Kimberley Clarc Healthcare and 3M Healthcare:
Quality control and fraud prevention share : Indecomm Global Services. Larkin said limiting what departments like quality assurance, quality control and fraud prevention share can limit a company's view of potential risks)
What is the importance of the information in the article : Summarize the whole article by all of its key or salient points. It may help if you use bullets to note the salient points of the article, as you read through it. A summary is desired, not just the "thrust' of the article. Analyze the multi-nation..

Reviews

Write a Review

Mathematics Questions & Answers

  Find the percentage increase

The price of a gallon of unleaded gas has risen to $2.88 today. Yesterday's price was $2.81 . Find the percentage increase. Round your answer to the nearest tenth of a percent.

  How far could each animal move

How far could each animal move in an hour A sanil can move 40 feet in 1/4 an hour a turtle can move 300 feet in an hour a sloth can move 50 feet in 1/3 an hour

  Population means with an unknown standard deviation

When comparing two population means with an unknown standard deviation you use a t test and you use n-1 degrees of freedom.

  Decompose the premium payable into the risk portion

For a certain contract issued at age 60, 5V = 200, the premium payable at age 65 is 40, q65 = 0.20. Decompose the premium payable at age 65 into the risk and the savings portion.

  Find the weight of the body in kilograms

A body has dimensions 20cm x 30 cm x 50 cm and has a density of 9000 kg/m3. Find the weight of the body in kilograms.

  Define three equivalence relations on the set of buildings

Define three equivalence relations on the set of buildings on a college campus. Determine the equivalence classes for each of these equivalence relations.

  Expected in a sample of 100,000 new iphones

In a sample of 1500 new iPhones, 12 were found to be defective. At this rate, how many defective iPhones would be expected in a sample of 100,000 new iPhones? Use a proportion to set up and solve this problem.

  What is the elevation of its peak

Peak elevation. The tallest mountain in the world, as measured from base to peak, is Mauna Kea in Hawaii. From a base 19,684 ft below sea level, it rises 33,480 ft. What is the elevation of its peak?

  What is the mean time between successive inquiries

Inquiries of the Poisson Portal interactive query system arrive at the central computer in a Poisson pattern at an average rate of 13 inquiries per minute.

  The pythagorean theorem in the solution of a problem

What tools, unique to this application, would be necessary to get the measurements needed to apply the Pythagorean Theorem?

  State continuously compounded interest

A woman deposits $50,000 in a savings account with 4% continuously compounded interest. How many years must she wait until the balance has doubled

  Are the events compact and domestic independent

Is there something wrong with the numbers? Explain. Are the events compact and domestic independent?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd