Question: Problem 1 : Define the following row vectors ( arrays ) in MATLAB: x = [ 6 2 8 ] y = [ 1 0

Problem 1: Define the following row vectors (arrays) in MATLAB:
x =[628]
y =[1046]
Compute the following matrices.
Problem 2: In linear algebra, a Hilbert matrix is computed as follows:
Problem 3: The volume and perimeter of a rectangle can be computed as follows:
volSq = length x width
perSq =2 length +2 width...
Problem 1.1: a(i,j)= x(i)y(j)
1.2: b(i,j)= x(i)/y(j)
1.3: c(i)= x(i)y(i)
Problem 1.4: sumC = sum of the elements in c.
AProblem 1.5: d(i,j)= x(i)/(2+x(i)+y(j)
Problem 1.6: e(i,j)= reciprocal of the lesser of x(i) and y(j). If both are same then e(ij)=1/y(j)
Assessment result: correctProblem 2.1: Write a MATLAB function to compute the Hilbert matrix for a given size n. Name the function as myFunction.
Assessment result: incorrectProblem 2.2: Use the function "myFunction" to create a Hilbert matrix with n =5 and assign it to a variable called hilberMat.
The submission must contain a variable named hilbertMat.
Problem 3.1: Write a function called myRectangle to compute the volume and perimeter of a rectangle given the length and width. The function should return two values, the computed volume and perimeter.
Problem 3.2: Use the function "myRectangle" to compute the volume and perimeter for a rectangle with length =2 and width =3. Assign the volume to a variable called vol and perimeter to a variable called perm.
The submission must contain a variable named vol.

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!