blob: 2e8b83e2ecb70cc62c30c215ac60471ced6afb84 (
plain)
1
2
3
4
5
6
7
8
9
10
|
close();
clear;
clc;
//time period 'T, angular frequency 'w', amplitude ro maximum voltage 'Vm'
to = 5*10^(-3); //s
t1 = 15*10^(-3); //s
T = 10^(-2)*1/7;
w = 2*%pi/T; //rad/s
Vm = 2; //V
mprintf("v(t) = (%d sin w*(t-%0.3f)) *(u(t-%0.3f) - u(t-%0.3f))",Vm, to,to,t1);
|