필터 지우기
필터 지우기

Using sim command in parfor

조회 수: 7 (최근 30일)
Gova
Gova 2023년 3월 16일
답변: Supraja 2023년 4월 5일
I am facing an error when i run the sim command in the parfor loop. I have read that its a discouraged workflow, but can use some caveats, in here: https://in.mathworks.com/help/simulink/ug/not-recommended-using-sim-function-within-parfor.html
I am quite new to MATLAB, so I would like to know how this can be written and executed in my case I can't omit the sim file as it gives me various inputs for my results. Please do help out!
  댓글 수: 1
Edric Ellis
Edric Ellis 2023년 3월 17일
You should follow the advice on that page and use parsim. It was specifically designed to replace using sim inside parfor, and completely avoids a bunch of the possible difficulties you might face. If you are struggling to use parsim, please show us what you tried and why it doesn't work.

댓글을 달려면 로그인하십시오.

답변 (1개)

Supraja
Supraja 2023년 4월 5일
As you haven’t specified your exact issue I am assuming you want you want to use 'sim' function inside 'parfor' loop.You can check the matlab answer here where 'sim' function is used inside a 'parfor' loop.
I am attaching some additional resources for your reference.

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by