cfuncs
Contents
- step function
- rect function
- gaus function
- tri function
- ramp function
- sinc function
- anonymous function
Download MATLAB files: cfuncs.zip (continuous-time functions)
Reference: function plot utility
step function
func_plot(@ustep,2);
![](html/cfuncs_01.png)
rect function
func_plot(@rect,1);
![](html/cfuncs_02.png)
gaus function
func_plot(@gaus,3);
![](html/cfuncs_03.png)
tri function
func_plot(@tri,2);
![](html/cfuncs_04.png)
ramp function
func_plot(@ramp,1);
![](html/cfuncs_05.png)
sinc function
func_plot(@sinc,5,0.5);
![](html/cfuncs_06.png)
anonymous function
test = @(t) t.*exp(-t.^2).*step(t);
% func_plot(test,2)
gf = @(t) 4.5*test(t-1) - 2*test((1-t)/2);
func_plot(gf,5,1);
![](html/cfuncs_07.png)