matlab-basic

1 次查看(过去 30 天)
Rakesh Praveen
Rakesh Praveen 2011-11-21
hi,
does matlab program inside a if loop always executed sequentially ?
  3 个评论
Sean de Wolski
Sean de Wolski 2011-11-21
If you tell it to!
Walter Roberson
Walter Roberson 2011-12-8
There is no such thing as an if loop.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2011-11-21
No, the Just In Time (JIT) compiler can end up reordering some portions of the code.
  1 个评论
Jan
Jan 2011-11-21
Reordering does not mean, that the program is not executed sequentially. The parallelized functions like FILTER, MIN, SUM etc will process the data with multiple threads. On the processor level a branch prediction is applied also.
Therefore I agree with Walter and add the argument, that "sequential execution" is not exactly defined on modern processors.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Application Deployment 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by