Improve your Maltab Skills through Exercises

1. Create the following cell array:

>> cc = {'obs', 11, 3:2:9, zeros(2)};

Use the reshape function to make it a 2 × 2 matrix. Then, write an expression that would refer to just the last column of this cell array.

2. Create a 2 × 2 cell array using the cell function and then put values in the individual elements. Then, insert a row in the middle so that the cell array is now 3 × 2.

3. Create a cell array that stores phrases, such as:

exclaimcell = {'Bravo', 'Fantastic job'};

Pick a random phrase to print.

View the solution to exercise 1

View the solution to exercise 2

View the solution to exercise 3


Exercise 4

Create a structure variable that would store for a student his or her name, university id number, and GPA. Print this information.



View the solution to exercise 4



View Exercise 5

View the solution to exercise 5



View Exercise 6

View the solution to exercise 6



View Exercise 7

View the solution to exercise 7



View Exercise 8

View the solution to exercise 8





For more details, please contact me here.