ベクトル計算時の進捗状況の表示方法

1 次查看(过去 30 天)
Shota Ino
Shota Ino 2023-10-18
评论: Dyuman Joshi 2023-10-18
膨大な計算を実施しており、時間短縮を理由にループ処理による演算からベクトル演算に変更しております。
ベクトル演算に変更しても演算時間が長く、計算がどれくらい終わっているのか確認できるように進捗状況を表示したいです。ベクトル演算を用いたまま、計算の進捗状況を表示することは可能でしょうか?
  1 个评论
Dyuman Joshi
Dyuman Joshi 2023-10-18
It is possible to display the progress for Vectorization, but the progress would not be same compared to a for loop.
For a given task, Vectorizing performs the operation for all elements at once (that's why it's faster), whereas a loop performs the operation for each element one at a time.
So, you will directly get the final value of the calculation as the progress

请先登录,再进行评论。

回答(0 个)

类别

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

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!