clc
close all
fm=50;%fundamental freqency
wm=2*pi*fm;%frequency in radians
tt=4; % signal duration
fs=500;% sampling freqency
ti=1/500;
t=0:ti:tt-ti;
op=sawtooth(wm*t);%saw tooth signal
dop=diff(op);% differentiated signal
figure;subplot(2, 1, 1);plot(t,op);xlabel('time');title('sawtooth
signal');
subplot(2, 1, 2);plot(t,dop);xlabel('time');title('sawtooth
differinated signal');
Q1. Plot 20 periods of a triangle wave and its' derivative with a fundamental frequency of...
Q1. Plot 20 periods of a triangle wave and its' derivative with a fundamental frequency of 50 Hz. The sample rate is 500 Hz. Set the time vector as [o, 0.4] and increase by 1/f, Use subplot and grid on commands, label all the axes and name the graph with your name, i.e: Aylin's Signal, Aylin's Signal Derivative. (10 pts) Hint: Use sawtooth function, in order to obtain fully triangular wave, construct the signal as sawtooth (wt, 1/2) Q1. Plot...
Answer Q2 Q1. Use MATLAB to calculate sum of the AC voltages. Plot all three voltages in the same figure using the inbuilt function subplot(). The frequency of the signal is 10 Hz. Vary the time, t, so that you can view few cycles of the AC voltage. vi(t) = 10 V sin(wt +T/2) vz(t) =15 V sin(wt+1/3) vs(t) = (t) + v2(t) Q2. Use voltage vi(t) from Q1 and impedance, Z = 50 L 30°, and find phasor current...
Use MATLAB to : ("j" is the imaginary number.) The term lo is the fundamental frequency of the periodic signal, 2/T, where T is the period. Frequencies nlo, where n is an integer, are the harmonics. This infinite sum is an exact representation of the original function. If we use a finite sum, where n goes from -N to N, we will get an approximation "X-(t)". In this problem we will calculate and plot the Fourier series representation of a...
Lab #2 Discrete-time Fourier Transform (DTFT) OBJECTIVES: • Explore the DTFT, its meanings and concepts. • Get acquainted with Matlab/Octave 1) Start MATLAB and change the “Current Directory” in the top of the window (or type) >> cd '' (example: >> cd 'C:\NIU\lab2') Alternatively, if you don't want to use MATLAB, you can open a web-browser and go to “octave-online.net”. 2) Download and execute LAB2forStudent_A.M with >> lab2forStudent_A and observe that it produces a Discrete-Time (DT) signal xVec. 3) TO...