plotting 2 figures in same for loop
조회 수: 21 (최근 30일)
이전 댓글 표시
Dear Comunity Members
Im relatively new to matlab. i wanted to plot two figurs simultaneously in for loop meanng and in these two figres i wanted to add multiple data sets when if condistion is valid. i have following code but these giving me diffent figure for each set. i want two figurs whn particular condition satisfied.
for i=1:6
if rem(i,2)==0
figure
hold on
s1=scatter(x,i*[6 3 9 10 7],100,"filled");hold off
else
figure
hold on
s2= scatter(x,i*[6 3 9 10 7],100,"filled");hold off
end
end
can some one plese help me to figure this out
Best regards
Somnath
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

