running Multiple Functions, in Parralel in Matlab for Arduino or Ardruino Itself ?
3 ビュー (過去 30 日間)
古いコメントを表示
Babacar Dieng
2021 年 10 月 2 日
回答済み: Babacar Dieng
2021 年 10 月 8 日
I want to do the following and have them run in parralll
if (condition A==True) {
function_a() ;
function_b() ;
function_c() ;
}
where functions_a() and function_b() have the same duration which is longer than the duration of function_c() .
0 件のコメント
採用された回答
Shravan Kumar Vankaramoni
2021 年 10 月 6 日
Hi,
You can use simple PARFOR to execute those functions simultaneously as long as they don't interact with each other. Below is the example code
matlabpool open 3
parfor i = 1:3
if i == 1
function_a()
elseif i == 2
function_b()
else
function_c()
end
end
Refer the following link for more information on this
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!