# slewFilter(a,slewRate)

Implements an analog filter whose response is based on a given slew rate.

### Syntax

o_slewFilter(a,slewRate)
  a: waveform - input waveform
  slewRate: numeric - slew rate in 1/s - scalar for bidirectional, 1D array for separate rates - [pos rate, neg rate]
  return: waveform- input transformed by the slew-based filter

### Usage

Typical usage is to model a system that can only change at up to a given speed due to finite drive ability. Classic case is a capacitor being charged at the maximum available current which limits that change in voltage per second.

### Location

menu: veeos ==> Signal processing ==> Modules ==> slewFilter

library: sigLib

### Example

The original signal is in cyan. The yellow shows slew in both directions at the same rate (`o_slewRate(A,20)`), the magenta is slewed in both directions (`o_slewRate(A,[40,20]`) but at different rates.

### Notes

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

analogFilter, envelope, decayFilter

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:32.