www.mathworks.com Open in urlscan Pro
23.218.214.83  Public Scan

Submitted URL: http://app.go.mathworks.com/e/er?s_v1=43528&elqem=3128702_EM1_EN_NUR_22-05_ONBOARDING-NEW-USER&s=646005169&lid=19636&elqTrac...
Effective URL: https://www.mathworks.com/help/examples.html?s_v1=43528&elqem=3128702_EM1_EN_NUR_22-05_ONBOARDING-NEW-USER
Submission: On May 16 via api from US — Scanned from DE

Form analysis 2 forms found in the DOM

GET /support/search.html

<form id="docsearch_form" action="/support/search.html" method="get" accept-charset="utf-8" data-release="R2022a" data-language="en">
  <div class="input-group">
    <label class="sr-only">Search Help Center</label>
    <input id="suggestion" type="hidden" name="suggestion" value="">
    <span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span>
    <input id="docsearch" class="form-control conjoined_search" type="search" name="q" placeholder="Search Help Center" autocomplete="off">
    <div class="input-group-btn">
      <button type="button" class="btn btn_search_adjacent dropdown-toggle" data-toggle="dropdown"><span class="caret"></span><span class="search_scope_label">Help Center</span></button>
      <ul class="dropdown-menu list-unstyled dropdown-menu-right" role="menu">
        <!--<li data-toggle="collapse" data-target="#search_scope_support"><a href="#">Support</a></li>-->
        <li data-toggle="collapse" data-target="#search_scope_site" class="support_search_scope_trigger"><a href="#">MathWorks</a></li>
      </ul>
      <script>
        $(".support_search_scope_trigger").click(function() {
          $("#search_scope_support").removeClass("in");
          $("#query").val($("#search").val());
        });
      </script>
      <button type="submit" name="submitsearch" id="support_submitsearch" class="btn icon-search btn_search_adjacent btn_search icon_16"></button>
    </div>
  </div>
</form>

Name: searchGET /search/site_search.html

<form name="search" id="site_search" class="site_search" action="/search/site_search.html" method="get">
  <div class="input-group">
    <label class="sr-only">Search MathWorks.com</label>
    <input type="hidden" name="c[]" value="entire_site">
    <input type="search" name="q" id="query" class="form-control conjoined_search" placeholder="Search MathWorks.com" autocomplete="off" \="">
    <div class="input-group-btn">
      <button type="button" class="btn btn_search_adjacent dropdown-toggle" data-toggle="dropdown"><span class="caret"></span><span class="search_scope_label">MathWorks</span></button>
      <ul class="dropdown-menu list-unstyled dropdown-menu-right" role="menu">
        <li data-toggle="collapse" data-target="#search_scope_support" class="site_search_scope_trigger"><a href="#">Support</a></li>
      </ul>
      <script>
        $(".site_search_scope_trigger").click(function() {
          $("#search_scope_site").removeClass("in");
          $("#search").val($("#query").val());
        });
      </script>
      <button type="submit" id="searchbutton" class="btn icon-search btn_search_adjacent btn_search icon_16"></button>
    </div>
  </div>
</form>

Text Content

WE VALUE YOUR PRIVACY

We and our partners store and/or access information on a device, such as cookies
and process personal data, such as unique identifiers and standard information
sent by a device for personalised ads and content, ad and content measurement,
and audience insights, as well as to develop and improve products.

With your permission we and our partners may use precise geolocation data and
identification through device scanning. You may click to consent to our and our
partners’ processing as described above. Alternatively you may access more
detailed information and change your preferences before consenting or to refuse
consenting. Please note that some processing of your personal data may not
require your consent, but you have a right to object to such processing. Your
preferences will apply to a group of websites. You can change your preferences
at any time by returning to this site or visit our privacy policy.

MORE OPTIONSAGREE
Skip to content
Toggle Main Navigation


 * Sign In to Your MathWorks AccountSign In to Your MathWorks Account
 * Products
 * Solutions
 * Academia
 * Support
 * Community
 * Events
 * Get MATLAB


MATHWORKS MATRIX MENU

 * MATLAB
 * Help Center
 * MathWorks

 * MATLAB Answers
 * File Exchange
 * Videos
 * Online Training
 * Blogs
 * Cody
 * MATLAB Drive
 * ThingSpeak
 * Bug Reports
 * Community

 * Products
 * Solutions
 * Academia
 * Support
 * Community
 * Events

 * Get MATLAB
 * Sign In to Your MathWorks AccountSign In to Your MathWorks Account


 * MATHWORKS MATRIX MENU
   
    * MATLAB
    * Help Center
    * MathWorks
   
    * MATLAB Answers
    * File Exchange
    * Videos
    * Online Training
    * Blogs
    * Cody
    * MATLAB Drive
    * ThingSpeak
    * Bug Reports
    * Community

Help CenterHelp Center

Search Help Center
Help Center
   
 * MathWorks

Search MathWorks.com
MathWorks
 * Support

Close Mobile Search
Open Mobile Search
Off-Canvas Navigation Menu Toggle
 * Documentation Home
 * Examples


CATEGORY

 * MATLAB
 * Simulink
 * 5G Toolbox
 * Aerospace Blockset
 * Aerospace Toolbox
 * Antenna Toolbox
 * Audio Toolbox
 * Automated Driving Toolbox
 * AUTOSAR Blockset
 * Bioinformatics Toolbox
 * Bluetooth Toolbox
 * Communications Toolbox
 * Computer Vision Toolbox
 * Control System Toolbox
 * Curve Fitting Toolbox
 * Data Acquisition Toolbox
 * Database Toolbox
 * Datafeed Toolbox
 * DDS Blockset
 * Deep Learning HDL Toolbox
 * Deep Learning Toolbox
 * DO Qualification Kit
 * DSP HDL Toolbox
 * DSP System Toolbox
 * Econometrics Toolbox
 * Embedded Coder
 * Filter Design HDL Coder
 * Financial Instruments Toolbox
 * Financial Toolbox
 * Fixed-Point Designer
 * Fuzzy Logic Toolbox
 * Global Optimization Toolbox
 * GPU Coder
 * HDL Coder
 * HDL Verifier
 * IEC Certification Kit
 * Image Acquisition Toolbox
 * Image Processing Toolbox
 * Industrial Communication Toolbox
 * Instrument Control Toolbox
 * Lidar Toolbox
 * LTE Toolbox
 * Mapping Toolbox
 * MATLAB Coder
 * MATLAB Mobile for Android
 * MATLAB Mobile for iOS
 * MATLAB Report Generator
 * Mixed-Signal Blockset
 * Model Predictive Control Toolbox
 * Model-Based Calibration Toolbox
 * Motor Control Blockset
 * Navigation Toolbox
 * Optimization Toolbox
 * Parallel Computing Toolbox
 * Partial Differential Equation Toolbox
 * Phased Array System Toolbox
 * Powertrain Blockset
 * Predictive Maintenance Toolbox
 * Radar Toolbox
 * Reinforcement Learning Toolbox
 * Requirements Toolbox
 * RF Blockset
 * RF PCB Toolbox
 * RF Toolbox
 * Risk Management Toolbox
 * Robotics System Toolbox
 * Robust Control Toolbox
 * ROS Toolbox
 * Satellite Communications Toolbox
 * Sensor Fusion and Tracking Toolbox
 * SerDes Toolbox
 * Signal Integrity Toolbox
 * Signal Processing Toolbox
 * SimBiology
 * SimEvents
 * Simscape
 * Simscape Driveline
 * Simscape Electrical
 * Simscape Fluids
 * Simscape Multibody
 * Simscape Multibody Link
 * Simulink 3D Animation
 * Simulink Check
 * Simulink Code Inspector
 * Simulink Coder
 * Simulink Compiler
 * Simulink Control Design
 * Simulink Coverage
 * Simulink Design Optimization
 * Simulink Design Verifier
 * Simulink Desktop Real-Time
 * Simulink PLC Coder
 * Simulink Real-Time
 * Simulink Report Generator
 * Simulink Test
 * SoC Blockset
 * Stateflow
 * Statistics and Machine Learning Toolbox
 * Symbolic Math Toolbox
 * System Composer
 * System Identification Toolbox
 * Text Analytics Toolbox
 * ThingSpeak
 * UAV Toolbox
 * Vehicle Dynamics Blockset
 * Vehicle Network Toolbox
 * Vision HDL Toolbox
 * Wavelet Toolbox
 * Wireless HDL Toolbox
 * Wireless Testbench
 * WLAN Toolbox


 * Documentation
 * Examples
 * Functions
 * Blocks
 * Apps
 * Videos
 * Answers

 * Trial Software
 * Trial Software
 * Product Updates
 * Product Updates

Resources
 * Documentation
 * Examples
 * Functions
 * Blocks
 * Apps
 * Videos
 * Answers


Main Content


EXAMPLES




MATLAB


BASIC MATRIX OPERATIONS

Basic techniques and functions for working with matrices in the MATLAB®
language.

Open Live Script



FOURIER TRANSFORMS

The Fourier transform is a powerful tool for analyzing data across many
applications, including Fourier analysis for signal processing.

Open Live Script



CREATE COMMON 2-D PLOTS

Create a variety of 2-D plots in MATLAB®.

Open Live Script



INTRODUCTION TO THE LIVE EDITOR

An introduction to the Live Editor. In the Live Editor, you can create live
scripts that show output together with the code that produced it. Add formatted
text, equations, images, and hyperlinks to enhance your narrative, and share the
live script with others as an interactive document.

Open Live Script



READ SPREADSHEET DATA INTO TABLE

The best way to represent tabular spreadsheet data in MATLAB is in a table since
tables can store heterogeneous (a mix of numeric and text) data, as well as
variable and row names.

Open Live Script



ANALYZE BIG DATA IN MATLAB USING TALL ARRAYS

Use tall arrays to work with big data in MATLAB®. You can use tall arrays to
perform a variety of calculations on different types of data that does not fit
in memory. These include basic calculations, as well as machine learning
algorithms within Statistics and Machine Learning Toolbox™.

Open Live Script



APP THAT CALCULATES AND PLOTS DATA BASED ON NUMERICAL INPUT

Example of an App Designer app that uses a button callback to display a line
plot.

Open App



VIEW MORE
MATLAB
EXAMPLES


SIMULINK


MODELING AN AUTOMATIC TRANSMISSION CONTROLLER

Model an automotive drivetrain with Simulink®. Stateflow® enhances the Simulink
model with its representation of the transmission control logic. Simulink
provides a powerful environment for the modeling and simulation of dynamic
systems and processes. In many systems, though, supervisory functions like
changing modes or invoking new gain schedules must respond to events that may
occur and conditions that develop over time. As a result, the environment
requires a language capable of managing these multiple modes and developing
conditions. In the following example, Stateflow shows its strength in this
capacity by performing the function of gear selection in an automatic
transmission. This function is combined with the drivetrain dynamics in a
natural and intuitive manner by incorporating a Stateflow block in the Simulink
block diagram.

Open Model



SIMULATION OF A BOUNCING BALL

Use two different approaches to modeling a bouncing ball using Simulink®.

Open Model



MODELING A FAULT-TOLERANT FUEL CONTROL SYSTEM

Combine Stateflow® with Simulink® to efficiently model hybrid systems. This type
of modeling is particularly useful for systems that have numerous possible
operational modes based on discrete events. Traditional signal flow is handled
in Simulink while changes in control configuration are implemented in Stateflow.
The model described below represents a fuel control system for a gasoline
engine. The system is highly robust in that individual sensor failures are
detected and the control system is dynamically reconfigured for uninterrupted
operation.

Open Model



AIRCRAFT LONGITUDINAL FLIGHT CONTROL

Model flight control for the longitudinal motion of an aircraft. First order
linear approximations of the aircraft and actuator behavior are connected to an
analog flight control design that uses the pilot's stick pitch command as the
set point for the aircraft's pitch attitude and uses aircraft pitch angle and
pitch rate to determine commands. A simplified Dryden wind gust model is
incorporated to perturb the system.

Open Model



ANTI-WINDUP CONTROL USING A PID CONTROLLER

Use anti-windup schemes to prevent integration wind-up in PID controllers when
the actuators are saturated. We use the PID Controller block in Simulink® which
features two built-in anti-windup methods, back-calculation and clamping, as
well as a tracking mode to handle more complex scenarios.

Open Model



SINGLE HYDRAULIC CYLINDER SIMULATION

Use Simulink® to model a hydraulic cylinder. You can apply these concepts to
applications where you need to model hydraulic behavior. See two related
examples that use the same basic components: four cylinder model and two
cylinder model with load constraints. Note: This is a basic hydraulics example.
You can more easily build hydraulic and automotive models using Simscape™
Driveline™ and Simscape Fluids™.

Open Model



RADAR TRACKING USING MATLAB FUNCTION BLOCK

Use an extended Kalman filter with the MATLAB® Function block in Simulink® to
estimate an aircraft's position from radar measurements. The filter
implementation is found in the MATLAB Function block, the contents of which are
stored in the Simulink model itself.

Open Model



APPROXIMATING NONLINEAR RELATIONSHIPS: TYPE S THERMOCOUPLE

Approximate nonlinear relationships of a type S thermocouple.

Open Model



SIMULATING AUTOMATIC CLIMATE CONTROL SYSTEMS

Simulate an automatic climate control system in a car using Simulink® and
Stateflow®. In the User Setpoint in Celsius block, enter a value for the desired
air temperature in the car.

Open Model



MODELING AN ANTI-LOCK BRAKING SYSTEM

Model a simple model for an Anti-Lock Braking System (ABS). It simulates the
dynamic behavior of a vehicle under hard braking conditions. The model
represents a single wheel, which may be replicated a number of times to create a
model for a multi-wheel vehicle.

Open Model



AIR TRAFFIC CONTROL RADAR DESIGN

Model a conceptual air traffic control (ATC) radar simulation based on the radar
range equation.

Open Model



VARIANT SUBSYSTEMS

Learn basic functionality of variant subsystems.

Open Script



COMPONENT-BASED MODELING WITH MODEL REFERENCE

Walks you through simulation and code generation of a model that references
another model multiple times. In this example, Simulink® generates code for
accelerated simulation, and Simulink® Coder™ generates code that can be deployed
in standalone applications.

Open Model



INTRODUCTION TO ACCELERATING MODELS

Simulink® Accelerator™ speeds up the execution of your model, by creating and
compiling C code. This C code takes the place of the interpretive code that
Simulink uses when in Normal mode (that is, when Simulink® is not in Accelerator
mode). Simulink Accelerator generates the C code from the Simulink model and
invokes the MATLAB® mex function to compile and dynamically link the generated
code to Simulink. This code generation and compilation process happens the first
time you accelerate the model and any time the model changes are significant
enough to require re-generation (for example, the addition of a block).

Open Model



PARALLEL SIMULATIONS USING PARSIM: PARAMETER SWEEP IN RAPID ACCELERATOR MODE

Run multiple simulations of a Monte Carlo study in parallel by using Parallel
Computing Toolbox™. Parallel execution leverages the multiple cores of your host
machine to run many simulations more quickly. These simulations could also be
run in parallel on computer clusters using the MATLAB Parallel Server™. This
example will work even if the Parallel Computing Toolbox™ or the MATLAB Parallel
Server™ is not available, but the simulations will run in serial.

Open Model



DESIGNING A HIGH ANGLE OF ATTACK PITCH MODE CONTROL

Use the Control System Toolbox™ and Simulink® Control Design™ to interact with
Simulink to design a digital pitch control for the aircraft. In this example, we
will design the controller to permit the aircraft to operate at a high angle of
attack with minimal pilot workload.

Open Model



VIEW MORE
SIMULINK
EXAMPLES


Thank you for your feedback!
Why did you choose this rating? Submit
How useful was this information?
Unrated 1 star 2 stars 3 stars 4 stars 5 stars
×


MATLAB COMMAND

You clicked a link that corresponds to this MATLAB command:



Run the command by entering it in the MATLAB Command Window. Web browsers do not
support MATLAB commands.

Close

×


SELECT A WEB SITE

Choose a web site to get translated content where available and see local events
and offers. Based on your location, we recommend that you select: United States.

United States
 * Switzerland (English)
 * Switzerland (Deutsch)
 * Switzerland (Français)

 * 中国 (简体中文)
 * 中国 (English)

You can also select a web site from the following list:


HOW TO GET BEST SITE PERFORMANCE

Select the China site (in Chinese or English) for best site performance. Other
MathWorks country sites are not optimized for visits from your location.


AMERICAS

 * América Latina (Español)
 * Canada (English)
 * United States (English)


EUROPE

 * Belgium (English)
 * Denmark (English)
 * Deutschland (Deutsch)
 * España (Español)
 * Finland (English)
 * France (Français)
 * Ireland (English)
 * Italia (Italiano)
 * Luxembourg (English)

 * Netherlands (English)
 * Norway (English)
 * Österreich (Deutsch)
 * Portugal (English)
 * Sweden (English)
 * Switzerland
   * Deutsch
   * English
   * Français
 * United Kingdom (English)


ASIA PACIFIC

 * Australia (English)
 * India (English)
 * New Zealand (English)
 * 中国
   * 简体中文
   * English
 * 日本 (日本語)
 * 한국 (한국어)

Contact your local office

 * Trial Software
 * Trial Software
 * Product Updates
 * Product Updates

MathWorks

Accelerating the pace of engineering and science

MathWorks is the leading developer of mathematical computing software for
engineers and scientists.

Discover...

Explore Products

 * MATLAB
 * Simulink
 * Student Software
 * Hardware Support
 * File Exchange

Try or Buy

 * Downloads
 * Trial Software
 * Contact Sales
 * Pricing and Licensing
 * How to Buy

Learn to Use

 * Documentation
 * Tutorials
 * Examples
 * Videos and Webinars
 * Training



Get Support

 * Installation Help
 * Answers
 * Consulting
 * License Center
 * Contact Support

About MathWorks

 * Careers
 * Newsroom
 * Social Mission
 * Customer Stories
 * About MathWorks

 * United States


 * Trust Center
 * Trademarks
 * Privacy Policy
 * Preventing Piracy
 * Application Status




© 1994-2022 The MathWorks, Inc.


 * 
 * 
 * 
 * 
 * 
 * 



Join the conversation