フィルターのクリア

How to speed the code? It does not want to end processing!!!!

5 ビュー (過去 30 日間)
Ahmed Gharieb naga
Ahmed Gharieb naga 2023 年 6 月 28 日
コメント済み: Image Analyst 2023 年 6 月 29 日
R = length(lambda) ;
Unrecognized function or variable 'lambda'.
T = size(X,2) ;
time_dmd = zeros(T-1,R);
for iter = 1:T-1
for p = 1:R
time_dmd(iter,p) = b(p)*(exp(omega(p)*t(iter)));
Xdm(:,iter,p) = real(Phi(:,p)*(b(p).*exp(omega(p)*t(iter))));
end
end
  1 件のコメント
DGM
DGM 2023 年 6 月 29 日
編集済み: DGM 2023 年 6 月 29 日
Well I can see a few obvious problems, but the most obvious problem is that that this isn't even complete code.
It's a bit hard to troubleshoot something If it's unknown what size anything is or if the code even works.

サインインしてコメントする。

回答 (1 件)

DGM
DGM 2023 年 6 月 29 日
編集済み: DGM 2023 年 6 月 29 日
Here's my guess.
% assuming b,omega,t are all row vectors
% width of Phi is equal to length of b,omega
time_dmd = b.*exp(omega.*reshape(t(1:end-1),[],1))
Xdm = permute(Phi,[3 2 1]).*time_dmd;
Xdm = real(permute(Xdm,[3 1 2]));
  2 件のコメント
Steven Lord
Steven Lord 2023 年 6 月 29 日
What is the size and class of the variable x that you load from your MAT-file? You can display this information using the whos function.
x = magic(4);
whos x
Name Size Bytes Class Attributes x 4x4 128 double
Image Analyst
Image Analyst 2023 年 6 月 29 日
It's not complete. You didn't attach 'model11.mat'

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by