Question: matlab languge Question 1: Write a script for drawing the following curve using the surf function. f(x,y)= - (x/5) 2 -(y/2) 2 -16 The range
matlab languge
Question 1:
Write a script for drawing the following curve using the surf function.
f(x,y)= - (x/5)2-(y/2)2-16
The range of x and y values are read from the user. Label the axis and give the diagram a title. Color the curve in red. Test your code for ?5 ? ?? ? 5 and ?5 ? ?? ? 5.
Question 2:
Write a script to generate a square matrix such that the elements of each row of the matrix consists of sequential numbers. For example, if n = 3, the matrix is:
1 2 3
4 5 6
7 8 9
Question 3:
Create a function, called MT, which takes as an argument two matrices. Both matrices are of size (1N). Let the matrices be x and y. The output of the function contains two items. First is the product of ??t?? and the second is ????t. Note: ??t is the transpose of the matrix x.
Question 4:
Create grid coordinates from x, y defined in the interval [-1,1], and evaluate the expression:
x2-y2/x2+y2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
