Question: 0.1 Given that x - [1 2; 3 4; 5 6], what is the output for mean(x) and mean(x,2). Explain the differences (5 marks) (2)
![0.1 Given that x - [1 2; 3 4; 5 6],](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa408e25aad_55766fa408db79e8.jpg)
0.1 Given that x - [1 2; 3 4; 5 6], what is the output for mean(x) and mean(x,2). Explain the differences (5 marks) (2) Given the MATLAB code for a polynomial as f - [11 -4 -4], write down the corresponding function f(x). (2 marks) (b) Write a MATLAB code to represent the following polynomial function fG) = (x+212 +2)(x - 2) (3 marks) Given the following matrix T below. 0.3 T =221 (a) Show how you can use MATLAB to declare matrix T as a magic square. What is the value of sun (Sum(T))? (2 marks) (b) Show how you can determine if the matrix T is a singular matrix
Step by Step Solution
There are 3 Steps involved in it
Q1 Mean Calculations Given the matrix x beginbmatrix 1 2 3 4 5 6 endbmatrix we need to calculate mea... View full answer
Get step-by-step solutions from verified subject matter experts
