Simple Function Generator

function "sfg.m" can generate sin,square,duty square,iso triangle,saw tooth,sweep .and fft.

You are now following this Submission

Simple Function Generator "sfg.m" is function generator.

kind of signals
1.sin
2.square(duty 50%)
3.duty square(0<duty<100%)
4.iso triangle
5.saw tooth
6.sweep

and fft analyze signals with optional argument).

So it is suitable learning frequency analyze,
to evaluate filter.

How to use

first using,input
>>sfg('demo')
you can know summary this command,
and watch all kind of plot.

Cite As

Hiroyuki Kato (2026). Simple Function Generator (https://www.mathworks.com/matlabcentral/fileexchange/43476-simple-function-generator), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0