subplot in loop and save final figure, when clear all used after each loop
조회 수: 4 (최근 30일)
이전 댓글 표시
for a=1:24 body subplot(24,6,a) clear all; end
please help;
답변 (1개)
Jos (10584)
2016년 6월 23일
Generally the use of clear all is not to be recommended, except at the beginning of a script. You can use CLEARVARS to free memory, which makes your code also much more readable.
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!