Running multiple simulations in multiple workspaces

Hi everyone, I am working on an airplane simulator in Java, which uses a model in Aerospace Blockset to calculate the required data for my airplane. However, I would like to calculate this data for multiple airplanes thus running multiple models. Is there a way to do that without the Parallel Computing Toolbox? If so is there a way to separate variables of each simulation in different workspaces so I can distinguish which of them belong to which simulation?
Thanks for your help!

回答 (1 件)

Amir
Amir 2014 年 8 月 4 日

0 投票

You don't need to have separate variables.
Please try this code:
S = 'This is Variable S for the first run'
% use this, !matlab -r "your code (or function) for second run"
!matlab -r "S='This is Variable S for the Second run'"

カテゴリ

ヘルプ センター および File ExchangeSimulink Environment Customization についてさらに検索

質問済み:

2014 年 7 月 28 日

回答済み:

2014 年 8 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by