Matrix Multiplikation Speed Up
이전 댓글 표시
Hello, I would like to speed up this code, any sugestions
Rm, Zm and Cm are 1700x1700
f = linspace(1e3,5e6,750); % Hier gibt man den Frequenzbereich an
w = 2*pi*f';
parfor k=1:length(f)
Zm = Rm+w(k)*1i*Lm;
Gama = Kk*(Zm\Kkt);
YYn = w(k)*1i*Cm + Gama;
Zn = inv(YYn);
Amp(k) = abs(1-Zn(jj,1)/Zn(1,1));
end
I do not have a GPU
댓글 수: 4
Joss Knight
2019년 8월 16일
편집: Joss Knight
2019년 8월 16일
What is Kkt? What is jj?
Matthias Schneider
2019년 8월 19일
편집: Matthias Schneider
2019년 8월 19일
madhan ravi
2019년 8월 19일
a?
Joss Knight
2019년 8월 21일
Sorry, nothing occurs to me. You take the trouble to invert YYn but then only use a single row of it, so maybe you could focus on that piece of algebra.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Eigenvalues & Eigenvectors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!