process two files in loop and subplot

4 ビュー (過去 30 日間)
siri meka
siri meka 2022 年 2 月 11 日
回答済み: Image Analyst 2022 年 2 月 12 日
Hi
i want to plot two file
(1 and 71, 2 and 72... so on or 1 and 65, 2 and 66.... so on )
can i run this in loop
if so pls help me with the code
TIA
  1 件のコメント
siri meka
siri meka 2022 年 2 月 11 日
i need to save the plot also

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2022 年 2 月 12 日
"i need to save the plot also" <=== Use exportgraphics(gca, fileName);
plot(x, y); % Whatever you need to do to create your plot...
% Save the plot
% First, get the name of the file that the user wants to save.
startingFolder = pwd % Or wherever you want.
defaultFileName = fullfile(startingFolder, '*.*');
[baseFileName, folder] = uiputfile(defaultFileName, 'Specify a file');
if baseFileName == 0
% User clicked the Cancel button.
return;
end
fullFileName = fullfile(folder, fullFileName)
% Now do the actual save:
exportgraphics(gca, fileName);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by