plotting within nested for loop
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Rashmil Dahanayake
el 18 de Jun. de 2014
The original code works fine. What errors are you referring to
Respuestas (1)
SRI
el 18 de Jun. de 2014
Your Code Is working Properly only, Please be precise with your question, so that we can solve your issue
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!