MATLAB Examples

App with Instrumentation Controls in App Designer

This app shows how to generate a pulse from instrumentation controls. It uses the following components to gather user input and plot the resulting wave form:

  • Numeric edit fields — allow users to enter the pulse frequency and length. MATLAB® automatically checks to make sure the values are numeric and within the range specified by the app.
  • Switches — allow users to control automatic plot updates and toggle between plots in the time and frequency domains.
  • Drop-down menu — allows users to select from a list of pulse shapes, such as Gaussian, sinc, and square.
  • Knobs — allow users to modify the pulse by specifying a window function, modulating the signal, or applying other enhancements.