MathWorks - Mobile View
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
MathWorks
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out

Videos and Webinars

  • MathWorks
  • Videos
  • Videos Home
  • Search
  • Videos Home
  • Search
  • Contact sales
  • Trial software
  Register to watch video
  • Description
  • Full Transcript
  • Related Resources

Batch Simulation in Simulink

Weiwu Li, MathWorks

In Simulink, a batch workflow typically means submitting jobs to run simulations on MATLAB workers and subsequently accessing the results of those simulations. When you run simulations in batches, you offload the execution of simulations onto a compute cluster. 

The batchsim command uses the Parallel Computing Toolbox™ and MATLAB® Distributed Computing Server™ licenses to run the simulations on MATLAB workers in parallel. batchsim runs the simulations in serial if the Parallel Computing Toolboxlicense is not available.

Prior to R2019a, MATLAB Parallel Server was called MATLAB Distributed Computing Server.

In Simulink, batch simulation means to submit jobs to run simulations on MATLAB workers, and subsequently access to the results of these simulations. You can now easily run your Simulink in parallel simulations in batch mode with the batchsim command.

In this example, we'll use the basic parsim command to do a parameter sweep of a vehicle suspension model. Once the simulation starts, the MATLAB Command Window stays busy. You will not be able to use the Command Window for other tasks until the simulation is done. If you close your MATLAB, you will lose your simulation data.

Let's simply change a parsim into batchsim, specify the pool size, and rerun the simulation. Now, the MATLAB Command Window will be free, and you can continue with your other work. You can close MATLAB or even your computer, without losing simulation data.

Once you restart MATLAB, you can use the Job Monitor conveniently to find a job and monitor its status. When your simulation is finished, you can either use the Job Monitor or [? Command ?] [? 9 ?] to fetch outputs for further processing.

For more information about batch simulation, please search Simulink documentation.

Related Products

  • Simulink
  • MATLAB Parallel Server
  • Parallel Computing Toolbox

Feedback

Featured Product

Simulink

  • Request Trial
  • Get Pricing

Up Next:

2:02
Running Batch Jobs

Related Videos:

45:02
Mobile Robot Simulation for Collision Avoidance with...
33:17
The New Look and Feel of Simulink: Why Modeling and...
48:03
Modeling and Simulation Made Easy with Simulink
52:52
Connecting Simulink with Other Simulation Frameworks

View more related videos

MathWorks - Domain Selector

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: .

Select web site

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)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contact sales
  • Trial software

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
  • Contact Sales
  • About MathWorks

MathWorks

Accelerating the pace of engineering and science

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

Discover…

  • Select a Web Site United States
  • Patents
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Application Status

© 1994-2021 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Join the conversation

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic.  By continuing to use this website, you consent to our use of cookies.  Please see our Privacy Policy to learn more about cookies and how to change your settings.