Publishing a Pdf

I am using R2010a and wish to publish a graph i have on my m-fie to a pdf by writing code in the M-file itself. I tried publish ('filename','pdf') but that does not work

回答 (1 件)

Junaid
Junaid 2012 年 2 月 10 日

2 投票

4 件のコメント

Praharsh
Praharsh 2012 年 2 月 10 日
Hi,
Thanks for the reply. I tried the save as and the export option but that does not really work out somehow for me. Could you recommend any other way?
Praharsh
Praharsh 2012 年 2 月 10 日
Also maybe because my graphs in the Mfile have some comments before and after the graphs which I want in the PDF as well.
Junaid
Junaid 2012 年 2 月 11 日
Usually saveas can save it in PDF, only problem occurs that there is extra black spaces around the margins. If you can't save using saveas function then please share your error. Then we can take a look on that.
Praharsh
Praharsh 2012 年 2 月 21 日
Hey Junaid,
sorry for the late asnwer. I have still not been able to solve the problem. Could you guys kindly look into it? this is my code
x = 0: pi/3:pi;
y = sin(x);
y2 = cos(x);
y3 = tan(x);
plot(x,y,'-',x,y2,'--',x,y3,':');
xlabel('0-pi')
ylabel('Trignometric Identities')

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

カテゴリ

ヘルプ センター および File ExchangeMATLAB Report Generator についてさらに検索

タグ

質問済み:

2012 年 2 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by