Info

此问题已关闭。 请重新打开它进行编辑或回答。

Hide figures while copying them into Excel

2 次查看(过去 30 天)
Adam
Adam 2015-5-4
关闭: MATLAB Answer Bot 2021-8-20
for i = 1:max
fh = figure;
plot(data);
print(fh, '-dbitmap');
xls.Range(figRange).PasteSpecial;
end
How can I modify the code above so the figures won't show up while copying them into an Excel sheet?
I have tried
set(fh,'Visible','off','CreateFcn','set(plotH(i),''Visible'',''on'')');
but did not work out.

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by