Vectorize the assignment operation
Mostra commenti meno recenti
How can I vectorize the following operation?
for j =1 :n
AllRankings1(1,a{j}) = tC(j);
end
a = {[4] [2 3 1] [] []}
tC = [1 2 0 0]
I want AllRankings1(1,:) as [2 2 2 1]
2 Commenti
KALYAN ACHARJYA
il 23 Ago 2018
Give an example? what result did you expect?
Rakhi Singh
il 23 Ago 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!