z*******x 发帖数: 30 | 1 大家好,请教一个问题:我想把matlab codes 拷到word 文档里,如何实现在拷的时候
,把line number也烤进来?
就是我希望考的形式是这样:
1 r = [0:fix((n-1)/2) -fix(n/2):-1]';
2 XT=10^-2;revE=10^-10;omga=5;%wvl=0.633*10^-6;
3 eeta=10^-3;AT=1.863*10^-2;AS=1.9*10^-4;ATS=9.41*10^-3;
而不是这样:
r = [0:fix((n-1)/2) -fix(n/2):-1]';
XT=10^-2;revE=10^-10;omga=5;%wvl=0.633*10^-6;
eeta=10^-3;AT=1.863*10^-2;AS=1.9*10^-4;ATS=9.41*10^-3;
谢谢! | w*******d 发帖数: 3714 | | m**********e 发帖数: 57 | 3 Google it, you will find the solution, esample:
http://office.microsoft.com/en-us/word/HP052312431033.aspx
1. Select the text you want to number.
2. On the File menu, click Page Setup, and then click the Layout tab.
3. In the Apply to box, click Selected text.
Microsoft Word will add page breaks (page break: The point at which
one page ends and another begins. Microsoft Word inserts an "automatic" (or
soft) page break for you, or you can force a page break at a specific
location b | l***g 发帖数: 1035 | 4 check out the MATLAB commands: publish, grabcode, notebook | z*******x 发帖数: 30 | 5 millions of thanks to you all! Will try them and see.... |
|