Code covered by the BSD License  

Highlights from
saturation function

Be the first to rate this file! 15 Downloads (last 30 days) File Size: 6.61 KB File ID: #23042

saturation function

by Nassim Khaled

 

19 Feb 2009

This file contains an approximation of the saturation of a function between the values [-1,1].

| Watch this File

File Information
Description

This file contains a funtion (mfile) and a simulink block. They both give the approximation of the saturation of a function between the values [-1,1]. The main advantage and purpose of designing this simple yet powerful function is to obtain a smooth funtion that has a continous derivative.
It can be easily adjusted to different lower and upper bounds by alterning the value "5" in the formula. Play around with it as you desire and as suitable to your application.
It can be used in control applications like sliding mode control (that uses the saturation) and other control schemes.

Required Products Simulink
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
saturation Nassim Khaled 20 Feb 2009 13:52:52
simulink Nassim Khaled 20 Feb 2009 13:52:52
mfile Nassim Khaled 20 Feb 2009 13:52:52
control Nassim Khaled 20 Feb 2009 13:52:52
sliding Nassim Khaled 20 Feb 2009 13:52:52
mode Nassim Khaled 20 Feb 2009 13:52:52
approximation Nassim Khaled 20 Feb 2009 13:52:52
continous Nassim Khaled 20 Feb 2009 13:52:52
derivavtive Nassim Khaled 20 Feb 2009 13:52:52

Contact us at files@mathworks.com