How to vectorize double sum
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Esegboria Osarhemen
il 9 Feb 2019
Commentato: Esegboria Osarhemen
il 9 Feb 2019
Please how can i vectorize this double sum
N=4
x=randn(3,N);
for i=1:N-1
for j=2:N
if j>i
a=x(:,i)-x(:,j)
end
end
end
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!