To save the lyapunov exponent plot in specific folder while for loop iteration?

5 ビュー (過去 30 日間)
VISHNU PRATAP SINGH PARIHAR
VISHNU PRATAP SINGH PARIHAR 2019 年 2 月 11 日
回答済み: Xiaoxing Wang 2021 年 5 月 2 日
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

回答 (1 件)

Xiaoxing Wang
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

カテゴリ

Help Center および File ExchangeMatrix Computations についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by