keep figure size when copy and paste to microsoft word

I am plotting the following and want to copy/paste the figure to Word with the exact size I set:
close all
nplot=11;
figure(101)
set(gcf,'unit','centimeters','position',[10 0 8.4 14]);
hold on
for iplot=1:nplot
plot((1:100),ones(100),'b')
end
hold off
When nplot is smaller than 11, I can copy and paste the figure directly to word, and the figure size is exactly 8.4*14 cm in Word;
However, when the nplot is set to 11 or above, the figure paste to word is not 8.4*14 cm. Anybody knows how to fix this problem?

Antworten (0)

Produkte

Version

R2020a

Gefragt:

am 8 Apr. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by