Info

This question is closed. Reopen it to edit or answer.

Hide figures while copying them into Excel

2 views (last 30 days)
Adam
Adam on 4 May 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!