Matrix Multiplikation Speed Up
Show older comments
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 Comments
Joss Knight
on 16 Aug 2019
Edited: Joss Knight
on 16 Aug 2019
What is Kkt? What is jj?
Matthias Schneider
on 19 Aug 2019
Edited: Matthias Schneider
on 19 Aug 2019
madhan ravi
on 19 Aug 2019
a?
Joss Knight
on 21 Aug 2019
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.
Answers (0)
Categories
Find more on Eigenvalues & Eigenvectors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!