plotting within nested for loop
Afficher commentaires plus anciens
Hi This is toy code similar to what I want to achieve:
T = randi(10,10)
Q = randi(10,10)
hold on
for i = 1:10
for j = 1:10
plot(T(i,j),Q(i,j))
end
end
hold off
and my goal is to the corresponding elements of the two matrices in a plot. Yet it does not work - where is the problem?
1 commentaire
Rashmil Dahanayake
le 18 Juin 2014
The original code works fine. What errors are you referring to
Réponses (1)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!