|
|
please,please!!! .....matlab wave generating
Please, please I need help I need to give this coursework by Monday and I'm stuck :((
Show how a 100 Hz triangle wave can be generated using Fourier
Series. The code should allow appropriate graphs to be plotted in order
to allow investigation of how the waveform changes with increasing the
number of terms in the series.
Many thanks in advance
|
|
0
|
|
|
|
Reply
|
orfeuszwp1
|
3/19/2010 5:34:05 PM |
|
"orfeuszwp1 biskup" <orfeusz79@gmail.com> wrote in message <ho0cid$grn$1@fred.mathworks.com>...
> Please, please I need help I need to give this coursework by Monday and I'm stuck :((
>
> Show how a 100 Hz triangle wave can be generated using Fourier
> Series. The code should allow appropriate graphs to be plotted in order
> to allow investigation of how the waveform changes with increasing the
> number of terms in the series.
>
> Many thanks in advance
Hi, You should show people what you have done so far to attempt this on your own.
Wayne
|
|
0
|
|
|
|
Reply
|
Wayne
|
3/19/2010 5:40:19 PM
|
|
"Wayne King" <wmkingty@gmail.com> wrote in message <ho0cu3$ml6$1@fred.mathworks.com>...
> "orfeuszwp1 biskup" <orfeusz79@gmail.com> wrote in message <ho0cid$grn$1@fred.mathworks.com>...
> > Please, please I need help I need to give this coursework by Monday and I'm stuck :((
> >
> > Show how a 100 Hz triangle wave can be generated using Fourier
> > Series. The code should allow appropriate graphs to be plotted in order
> > to allow investigation of how the waveform changes with increasing the
> > number of terms in the series.
> >
> > Many thanks in advance
>
> Hi, You should show people what you have done so far to attempt this on your own.
>
> Wayne
Well this what I have got so far
Fs = 100; % triangle wave frequency
T = 1/Fs;
t = 0:T:10; % Sampling frequency
w=2*pi*Fs;
n=1; %nth term
a=1; %amplitude
%I have found this formula for triangle wave using
%fourier series
y= (8/((2*n-1)*(2*n-1)*pi*pi))*cos((2*n-1)*pi*t/2);
plot(t,y);
xlabel('time');
ylabel('Amplitude');
>it does plot a graph but I dont this that this is correct
|
|
0
|
|
|
|
Reply
|
orfeuszwp1
|
3/19/2010 6:46:04 PM
|
|
"orfeuszwp1 biskup" <orfeusz79@gmail.com> wrote in message <ho0gpc$rmp$1@fred.mathworks.com>...
> "Wayne King" <wmkingty@gmail.com> wrote in message <ho0cu3$ml6$1@fred.mathworks.com>...
> > "orfeuszwp1 biskup" <orfeusz79@gmail.com> wrote in message <ho0cid$grn$1@fred.mathworks.com>...
> > > Please, please I need help I need to give this coursework by Monday and I'm stuck :((
> > >
> > > Show how a 100 Hz triangle wave can be generated using Fourier
> > > Series. The code should allow appropriate graphs to be plotted in order
> > > to allow investigation of how the waveform changes with increasing the
> > > number of terms in the series.
> > >
> > > Many thanks in advance
> >
> > Hi, You should show people what you have done so far to attempt this on your own.
> >
> > Wayne
>
> Well this what I have got so far
>
>
> Fs = 100; % triangle wave frequency
> T = 1/Fs;
> t = 0:T:10; % Sampling frequency
> w=2*pi*Fs;
> n=1; %nth term
> a=1; %amplitude
>
> %I have found this formula for triangle wave using
> %fourier series
>
> y= (8/((2*n-1)*(2*n-1)*pi*pi))*cos((2*n-1)*pi*t/2);
>
> plot(t,y);
> xlabel('time');
> ylabel('Amplitude');
>
> >it does plot a graph but I dont this that this is correct
Ok, without verifying your expression for the Fourier series, think about what a Fourier series is: it is a sum of terms. However, in your code you have n=1 so you are plotting only one term in the sum. If you want your Fourier series to approximate the function of interest, you have to sum over several terms. Think about how you can obtain terms in the series for several values of n and them sum the result.
Wayne
|
|
0
|
|
|
|
Reply
|
Wayne
|
3/20/2010 1:15:07 PM
|
|
|
3 Replies
401 Views
(page loaded in 0.052 seconds)
Similiar Articles: please,please!!! .....matlab wave generating - comp.soft-sys ...Please, please I need help I need to give this coursework by Monday and I'm stuck :(( Show how a 100 Hz triangle wave can be generated using Fourie... problem in generating both sine wave and triangular wave ...Please note here frequencies are important ,if we recuce the ... create a sine wave - comp.soft-sys.matlab problem in generating both sine wave and triangular wave ... sir ... Simulink: How to generate a sine wave using external source as ...please,please!!! .....matlab wave generating - comp.soft-sys ... Simulink: How to generate a sine wave using external source as ... I am trying to generate a sine wave ... Generate Stereo using Matlab. - comp.dspHi all, Can anyone explain how to generate the stereo and decode it in channel L and R in Matlab. Need some explanation or example please!!! Would... create a sine wave - comp.soft-sys.matlabI need to generate a sine wave of 50hz and triangular wave (using repeating ... form using Swing. - comp.lang.java ... create a sine wave - comp.soft-sys.matlab please help ... Generate noise model[Please help] - comp.soft-sys.matlab ...how to generate id - comp.soft-sys.matlab Generate noise model[Please help] - comp.soft-sys.matlab ..... really new to mat= lab, can I have a clear instruction on how to ... Matlab program to solve wave equation up to linear system of ...New in matlab, Need help please in making a matlab program to solve the wave equation below up to the point when you obtain a system of equations. so... How to generate colored Noise - comp.soft-sys.matlabGenerate noise model[Please help] - comp.soft-sys.matlab ... How to generate colored Noise - comp.soft-sys.matlab Generate noise model[Please help] - comp.soft-sys.matlab ... Help in plotting a square wave using Syms - comp.soft-sys.matlab ...please,please!!! .....matlab wave generating - comp.soft-sys ... Help in plotting a square wave using Syms - comp.soft-sys.matlab ... It was not looking like a wave but ... R-wave detection in ECG signal - comp.soft-sys.matlabplease,please!!! .....matlab wave generating - comp.soft-sys ... R-wave detection in ECG signal - comp.soft-sys.matlab Please find it ... need code for generating an ecg ... please,please!!! .....matlab wave generating - comp.soft-sys ...Please, please I need help I need to give this coursework by Monday and I'm stuck :(( Show how a 100 Hz triangle wave can be generated using Fourie... Matlab Help, generating square wave, and sinusoid - All About ...Matlab Help, generating square wave, and sinusoid Programmer's Corner ... problems with the registration process or your account login, please ... 7/27/2012 2:25:36 PM
|
|
|
|
|
|
|
|
|