plotting within nested for loop
显示 更早的评论
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 个评论
Rashmil Dahanayake
2014-6-18
The original code works fine. What errors are you referring to
回答(1 个)
SRI
2014-6-18
0 个投票
Your Code Is working Properly only, Please be precise with your question, so that we can solve your issue
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!