Trapezoidal like wave function

Hi guys,
I want to create a trapezoidal like function that it will repeat not only for one or two periods but for the duration of the simulation.Also i want to control every value of the basic pulse like the maximum value( in the picture attached its 10000) how quickly it rises to maximum how long it stays at maximum and at zero.I have attached a picture of the main pulse.I have previously used a trigonometric function Fn=((a/pi)*(asin(sin((2*pi/m)*t+l))+acos(cos((2*pi/m)*t+l)))-a/2+c) but i cannot control all the above characteristics and therefore its not representative of what i want to do.
Thanks for the help in advance.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 18 Apr 2016

Commented:

on 27 Apr 2016

Community Treasure Hunt

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

Start Hunting!