Q1: If y = [1, 2, 3, 4, 6, 5, 4, 3, 8, 9, 7, 6, 5, 4, 3, 2], then
a) replace the first three elements of vector y with its minimum value
b) reshape this vector into a 4 x 4 matrix.
Q2: What are the outputs of the following:
1:
>> x = [345 123 789]
>> x
2:
>> x = [345 123 789]
>> diag(x)
3:
>> x = [345 123 789]
>> tril(x)
4:
>> x = [345 123 789]
>> numel(x)
5:
>> x = [345 123 789]
>> x1