Solve all the following problems in MATLAB.
- Enter the following matrix A and create
- A 4 Γ 5 matrix B from the 1st , 3rd and 5th rows and 1st , 2nd , 4th and 8th columns of the matrix A.
- 16-elements row vector C from the elements of the 5th row and the 4th and 6th columns of the matrix A.
- Define π πππ π as scalar π = 0.75 and π = 11.3 and π₯, π¦, π§ as the vectors
π₯ = [2,5,1,9, ], π¦ = [0.2, 1.1, 1.8, 2] and π§ = [β3, 2, 5, 4], then evaluate
- Solve the following system of equations
2π₯1 + π₯2 + π₯3 β π₯4 = 12
π₯1 + 5π₯2 β 5π₯3 + 6π₯4 = 35
β7π₯1 + 3π₯2 β 7π₯3 β 5π₯4 = 7
π₯1 β 5π₯2 + 2π₯3 + 7π₯4 = 21
- Plot sin2 π₯, cos2 π₯ πππ cos 2π₯ on the same plot as well as subplots for 0 β€ π₯ β€ 2π, in different styles.
- Consider the function π§ = 0.56 cos(π₯π¦). Draw a surface plot showing variation of π§ with π₯ and π¦. Given π₯ β [0,10]πππ π¦ β [0,100]
- Write a function to find the gradient of π(π₯, π¦) = π₯2 + π¦2 β 2π₯π¦ + 4 at (a) (1,1) and (b) (1, β2). Use the function name from command prompt as well as from a script file.
- Use symbolic toolbox to solve the following problems (a) Solve π₯7 β 8π₯5 + 7π₯4 + 5π₯3 β 8π₯ + 9 = 0
(b) Solve the ODE:
, then evaluate πΉβ²(π₯) and πΉβ²β²(π₯).
- The population of X from the year 1930 to the year 2020 is given in the following table:
| Year | 1930 | 1940 | 1950 | 1960 | 1970 | 1980 | 1990 | 2000 | 2010 | 2020 |
| Population in million | 249 | 277 | 316 | 350 | 431 | 539 | 689 | 833 | 1014 | 1203 |
- Fit the data with a second-order polynomial. Make a plot of the points and the polynomial.
- Fit the data with linear and spline interpolations. Estimate the population in 1995 with linear and spline interpolations.



