Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Shota Ino
Shota Ino el 18 de Oct. de 2023
Comentada: Dyuman Joshi el 18 de Oct. de 2023
膨大な計算を実施しており、時間短縮を理由にループ処理による演算からベクトル演算に変更しております。
ベクトル演算に変更しても演算時間が長く、計算がどれくらい終わっているのか確認できるように進捗状況を表示したいです。ベクトル演算を用いたまま、計算の進捗状況を表示することは可能でしょうか?
  1 comentario
Dyuman Joshi
Dyuman Joshi el 18 de Oct. de 2023
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!