1- List - vector (Array operations) .* ./ .^ 2- Scientific notation 1.63e4= 16300 2.78e-3 = 0.00278 -5.17e3 -5.17*10^3 3- Subscripting and operations on vectors A = [2 4 6; 7 9 10] A(2) A(:,3) A(1,:) Assignment 2 Q3 4- Mathematical Functions and graphing (plotting) *Sine Cosine radian- X=-pi:pi/20:pi; f1= cos(x), f2 = sin(x) plot(x,f1,x,f2); degree- X= 0:10:360; cos(x*pi/180) *Standard Normal distribution x = -2.5:0.1:2.5; f = (1/sqrt(2*pi))*exp(-0.5*x.^2); plot(x,f) , grid, xlabel , ylabel, title 5- Output using disp , fprintf disp(n); disp([n m]) disp([n' m']) disp(['The answer is', num2str(n)]) fprintf("The answer is %d %4.2f %c %s", num, amount, character1, string1) ) 6- For loop and vectorization 7- if-else , switch-case (Quadratic eqn., display the max/min of two numbers) 8- Structure plan if x greater than zero, set x to 2y+10z / 15 if (x<0) x = (2*y+10*z)/2); 9- Functions Q6,7 Final exam revision vector functions: sum max min length sort cumsum mean var std Mathematical functions: sin cos exp sqrt rand rem round functions: round fix floor ceil