__Matrices, Trigonometry, Vector Algebra, Statistics using Matlab__

__Matrices, Trigonometry, Vector Algebra, Statistics using Matlab__

This is a sample solution in which expert has demonstrated his expertise in solving problems on matrices, trigonometry, vector algebra, and statistics using Matlab. In this solution, the homework expert has demonstrated the application of Matlab in solving various mathematical problems. He has solved wide-ranging problems on topics like matrix algebra, trigonometry, vector algebra, and dynamics. One question has been solved on the measures of central tendency in statistics using Matlab.

** SOLUTION** : –

clear, clc

A= [2.5 5.8 9]

sin (A)

A + 3

B = [5.2 3.14 2]

A + B

A.*B

A.^2

clear, clc

theta=0:0.1:2*pi;

sine=sin(theta);

cosine=cos(theta);

tangent=tan(theta) ;

[theta’, sine’, cosine’, tangent’]

A=4;

w=0.6;

t=0:10;

x=A* cos(w*t);

[t’,x’]

clear, clc

A = 1:20

B=0:pi/10:2*pi

c = linspace(4, 20, 15)

d = logspace(1, 3, 10)

feet = [0:10];

meter = feet * 0.3048;

[feet’,meter’]

radian= [0:(0.1*pi):pi];

degree = radian * 57.2958;

[radian’ , degree’]

mph= linspace(0, 100, 15);

fps = mph * 1.46667;

[mph’ , fps’]

H_conc = logspace(-3, -1, 10);

pH = H_conc * 1.46667;

[H_conc’ , pH’]

t=0:5:100;

d=0.5*9.8*t.*t;

[t’ , d’]

clear, clc

v0=100

g=9.81

theta=0:pi/100:pi/2;

R=v0^2*sin(2*theta)/g;

[theta’,R’]

max(R)

pi/4

%% From the table we can say that max range is obtained approximately at theta = pi/4

G = [68, 83, 61, 70, 75, 82, 57, 5, 76, 85, 62, 71, 96, 78, 76, 68, 72, 75, 83, 93];

MeanG=mean(G)

MedianG=median(G)

ModeG=mode(G)

% The most typical grade is “68” (which is the mode of the given array of grades)

LengthG=length(G)

SortG=sort (G)