Vectorization of nested for loops
이전 댓글 표시
hi, This is Pinaki. I am having a problem regarding the code execution time. The following code is taking almost 54 % of total run time to execute. Pls help me to victorize the following codes.
for m = 1:nbus
for n = 1:nbus
if m ~= n
Sij(m,n) = Vm(m)*conj(Iij(m,n))*BMVa;
end
end
end
Thanks, Pinaki
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!