### Tags: davecan, generation, inthe, matlab, program, programming, reference, second, series, sine, termsplease, triangular, wave, write

# Triangular wave generation

On Programmer » Matlab

883 words with 1 Comments; publish: Sat, 26 Apr 2008 23:49:00 GMT; (20062.50, « »)

Thank you dave

Can you write a Program for the series given for triangular wave in

the second reference you gave using sine terms

Please help me I will be grateful to you very much

With Regards

Nagesh

*http://matlab.todaysummary.com/q_matlab_60674.html*

All Comments

Leave a comment...

- 1 Comments
- Nagesh Kumar wrote:
>

> Thank you dave

> Can you write a Program for the series given for triangular wave in

> the second reference you gave using sine terms

> Please help me I will be grateful to you very much

> With Regards

> Nagesh

sure, my rate is $125/hr, minimum 8 hours. paypal is acceptable.

or you could take the easy way out:

x=1:100;

y=400000*2*(mod(x,2)-.5);

y1=interp(y,100,1,0.00001);

yfft=fft(y1);

y_sumofsines=ifft(yfft);

plot(y_sumofsines)

figure

plot(y_sumofsines-y1)

which is a reasonable approximation of a triangle.

#1; Sat, 26 Apr 2008 23:50:00 GMT

- Nagesh Kumar wrote: