Main Content

accelerate

Prepare exported SimBiology model for acceleration

Description

accelerate(model) prepares the exported model for acceleration on the current type of computer.

Note

Microsoft® Visual Studio® 2010 run-time libraries must be available on any computer running accelerated models generated using Microsoft Windows® SDK. If you plan to redistribute your accelerated models to other MATLAB® users, be sure they have the run-time libraries.

example

Examples

collapse all

Load a sample SimBiology® model object, and export.

modelObj = sbmlimport('lotka');
em = export(modelObj)
em = 
  Model with properties:

           Name: 'lotka'
     ExportTime: '05-Sep-2024 14:04:31'
    ExportNotes: ''

Accelerate the exported model.

accelerate(em);
em.isAccelerated
ans = logical
   1

The logical value 1 indicates that the exported model is accelerated.

Input Arguments

collapse all

Input model, specified as a SimBiology.export.Model object or array of such objects.

Version History

Introduced in R2012b