Question: 1. Using a cell() function, generate a 2x2 cell array that contains (a) a 3x3 identity matrix (e.g., using an eve() function) b) a character

 1. Using a cell() function, generate a 2x2 cell array that

1. Using a cell() function, generate a 2x2 cell array that contains (a) a 3x3 identity matrix (e.g., using an eve() function) b) a character string of your first and last name (c) a complex number of your choice (d) a sequential column vector of your choice up to the size of 10 (e.g., 1:10) Name this cell array as A. 2. Access this cell array, particularly (a) the identity matrix and the character string (the first two items). For example, if you stored your identity matrix at the first row and the first column, it should be (b) Then, get the numeric value of the identity matrix from the cell array, A, and convert it to another cell array, namely, B. (c) Then convert the cell array, B, back to a matrix of the same size. Show all the command(s) you have used. (d) Get the character string and convert it to a string array, namelv, C. Use the necessary command(s). Then convert the string array, C, back to a cell array. Using a struct() function, generate a structure array that contain different values of (a) lengths (e.g., 1 or 2), (b) widths (e.g., 1 or 2), (c) linestyles (eg, -'), (d) colors (e.g., 'red') Name this structure array as RECTANGLE. Get the array with the size up to 4 (e.g RECTANGLE(1).length, RECTANGLE(2).width, RECTANGLE (3).linestyle, RECTANGLE(4).color). 3. 4. Build a function that reads two inputs from your struct, RECTANGLE, calculates its area, and returns its output. You may name your function as [2] = area(x, y)

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!