How to generate a time-continuous rectangular signal from given rise-time and over-shoot?

Hello,
I'm looking for method to generate a square wave signal for given
  • over-shoot / under-shoot time and frequency
  • rise-time / fall-time
  • frequency
Thank you in advance!
Edit: Basically, I'm looking for a reverse of S=stepinfo(sys) or S=stepinfo(y, t) with S as input parameter.

 Accepted Answer

The Signal Processing Toolbox pulstran function (related are rectpuls and square) will likely do what you want.

4 Comments

Thanks for your answer! Initially, I thought this might work by adding a square wave to a pulsed decaying sine but I'm struggling to get a slower rise-time. Basically, I'm looking for a reverse of S=stepinfo(sys) or S=stepinfo(y, t), where S is the input parameter and sys or (y, t) is the output.
My pleasure!
Estimating a system from the input and output is called 'system identification'. The System Identification Toolbox is devoted to doing exactly that.
Perfect, that's really nice. Thank you.
Just in case anyone having the same issues is reading: this might be useful as well.

Sign in to comment.

More Answers (0)

Products

Release

R2017a

Asked:

Mei
on 8 Feb 2020

Commented:

on 9 Feb 2020

Community Treasure Hunt

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

Start Hunting!