Hello, I'm doing an assignment for class and I need to submit multiple equations and their answers solved by matlab in a single .m file. Right now the only way i've figured out how to do this is to break the code into sections using %% and then running each individual section. I dont want to have to do this, I just want it so when I run the code it gives me all the answers to all the questions. Thank you
clc
a=sin(2.1)*cos(0.9)^2;
b=log10(39);
V=a/b
syms h
f=inline('1/x','x');
limit(f(x),x,inf)
f=inline('1/x-1','x');
syms x
limit(f(x),x,inf, 'left')
f=inline('1/x','x');
syms x
limit(f(x),x,0,'right')
syms x
f=inline('(2*x^7-x^2)*(x-1/x+1)','x');
diff(f(x),x)
syms x
f=inline('log(x)/1+log(x)','x');
diff(f(x),x)
syms x
f=inline('log(sin(x)^2)','x');
diff(f(x),x)
syms x
f=inline('exp(x*tan(x))','x');
diff(f(x),x)
syms x
f=inline('sin(x)+cos(x)','x');
diff(f(x),x,2)
a = [6 1 0 4 -3; -9 2 3 -8 1; 7 0 -4 5 2]
R=rref(a)
a=[3 5 -2 6; 1 2 -1 1; 2 4 1 5; 3 7 5 3];
det(a)
inv(a)