To save the lyapunov exponent plot in specific folder while for loop iteration?
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
I have 20000 sampled nonlinear signal? I plotted lyapunov exponent plot for 400 sampled data window respectively? i want to save these plots to specific folder while loop iteration? 
function i used to plot lyapunov exponent "lyapunovExponent(xdata,Fs,'Dimension',est_dim,'Lag',est_lag,'ExpansionRange',ERange)"
Thanyou
댓글 수: 0
답변 (1개)
  Xiaoxing Wang
    
 2021년 5월 2일
        Please consider the following code within your loop.
for k = 1:N
    ...
    fileName = sprintf('testFig%d.pdf',k)
    fileName = fullfile(filepath,fileName); %* specify your directory
    print(fileName,'-dpdf')
    ...
end
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Matrix Computations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

