Vectorize the assignment operation
Mostrar comentarios más antiguos
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 comentarios
KALYAN ACHARJYA
el 23 de Ag. de 2018
Give an example? what result did you expect?
Rakhi Singh
el 23 de Ag. de 2018
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!