My MATLAB Solutions
My MATLAB Solutions
function exam_2019()
g = input("Enter the value of v");
v0 = input("Enter the value of v0");
t = input("Enter the value of t");
d = v0 * t + (0.5 * g * t^2)
end
Question 5
t = 0:1E-3:20E-3;
v = 10*cos(377*t);
plot(t,v,'*',t,i,'o')
title('Voltage and Current of an RL circuit')
xlabel('Sec')
ylabel('Voltage(V) and Current(mA)')
text(0.003, 1.5, 'v(t)');
text(0.009,2, 'i(t)')
2 by 2 matrix multiplaction