Question: Q 1 ) Write down a function that does the following: 1 ) checks if the input is a matrix, 2 ) if it is

Q1) Write down a function that does the following: 1) checks if the input is a matrix, 2) if it is a matrix checks if it is square and 3) if it is square prints the sum of its diagonal elements. Hint: Use If statements and/or conditions on arguments. (4 points)
Use the Plot command to produce two SEPARATE graphs next to each other (on 1e same line) for sin(x) and cos(x) between zero and 2, with red and green colors, espectively. Show ticks and the options for thickness, asrect ratio, axes title and frame. points).
 Q1) Write down a function that does the following: 1) checks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!