Hi

I've been trying to creat a plot of two graph but when I'm executing them both it's preforming only one of them, so I tryed to execute them separately and it worked.

here is the code:

R = 4;%Ω

L = 1.3;%H

V = 12;%Volt

t1 = linspace(0,0.5,8);

t2 = linspace(0.5,2,8);

ft1 = (V/R).*(1 - exp((-R.*t1)./L));%for 0<=t<=0.5

ft2 = (exp((-R.*t2)./L).*(V/R).*(exp((0.5*R)/L) - 1));%for t>=0.5

plot(ft1,ft2);

I will appreciate any help

thanks

Daniel