running Multiple Functions, in Parralel in Matlab for Arduino or Ardruino Itself ?

1 次查看(过去 30 天)
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() .

采纳的回答

Shravan Kumar Vankaramoni
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 个评论
Babacar Dieng
Babacar Dieng 2021-10-6
Thanks.
but once i write the function on Matlab, how can i transfert it to Ardruino?
Or i have to stick to Matlab for the hole project.

请先登录,再进行评论。

更多回答(1 个)

Babacar Dieng
Babacar Dieng 2021-10-8
how do i transfer the matlab code to ardruino

类别

Help CenterFile Exchange 中查找有关 Parallel Computing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by