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

조회 수: 3 (최근 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에서 MATLAB 入門에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!