How to save and plot in same figure data from the loop iteration ?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have this function: I need to plot loop iteration of gama value in the same figure at the end gama= [1.20,2.90,3.1,4.4,5.3] for gama= %all in the same figure end please need help
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2018년 10월 23일
편집: KALYAN ACHARJYA
2018년 10월 23일
for i=1:number_of_iterations
%Do operations
plot();
hold on;
end
In your case
gama=[1.20,2.90,3.1,4.4,5.3];
for i=1:length(gama)
gama=gama(i);
%do operations
Plot();
hold on;
end
댓글 수: 3
KALYAN ACHARJYA
2018년 10월 23일
편집: KALYAN ACHARJYA
2018년 10월 23일
Can you provide the code in the proper format (use {} in text format section), so that it can easily readable?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!