close all; clear; clc; For No DC alfa = 88.1*pi/180; Vm = 151; w = 2*pi*60; L = 0.01; R = 0.125; Z = abs(R+1j*w*L); gamma = 88.1*pi/180; Im = Vm/Z; tau = L/R; t = 0:0.001:0.3; i_t = Im*sin(w*t+alfa-gamma)-Im*exp(-t/tau).*sin(alfa-gamma); subplot(211); plot(t,i_t); xlabel('t, sec'), ylabel('i(t)') grid; For Max DC alfa = -1.9*pi/180; 1 i_t = Im*sin(w*t+alfa-gamma)-Im*exp(-t/tau).*sin(alfa-gamma); subplot(212); plot(t,i_t); xlabel('t, sec'), ylabel('i(t)') grid; Published with MATLAB® R2017a 2