matlab code for generating triangular wave

조회 수: 12 (최근 30일)
divijesh puninchathaya
divijesh puninchathaya 2013년 12월 24일
댓글: Image Analyst 2013년 12월 24일
I have to generate a matlab code for generating triangular wave with monotonically increasing and monotonically decreasing amplitude. That means the triangle should go on reduce its size with increasing time. plz can any one help me in this regard
Thanking you

채택된 답변

Image Analyst
Image Analyst 2013년 12월 24일
편집: Image Analyst 2013년 12월 24일
See attached demo, below in blue. Feel free to adapt as needed. The Signal Processing Toolbox has a built in triangle wave function called sawtooth() if you'd rather use that. Search the tags for triangle if you want more info.
  댓글 수: 3
divijesh puninchathaya
divijesh puninchathaya 2013년 12월 24일
편집: divijesh puninchathaya 2013년 12월 24일
The waveform obtained from this code the amplitude is constant. But i want my amplitude to be continously decreasing above and continously increasing at below of the peak. i.e. example: above 7.5,6.5, 5.5 and so on below it should start from zero and then should increase -1 -2 and so on plz help me
Image Analyst
Image Analyst 2013년 12월 24일
You didn't attach anything. If you need to pull the text out of Microsoft Word, you're going to have to use ActiveX programming. Search this forum for examples.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by