How to merge text followed by a figure or vice versa in one single PDF or some other File.

3 次查看(过去 30 天)
Hi. I am trying to prepare some results file from matlab. I want to write some alpha numeric results first and then I would like to add figures and then followed by some texts and so on. Do you have any idea to make such things? It would be great to have some help from you.
Thanks in advance.
Mahesh

采纳的回答

Sudhanshu Bhatt
Sudhanshu Bhatt 2015-7-22
编辑:Sudhanshu Bhatt 2015-7-22
Hi Mahesh,
Below mentioned are two of the few ways of achieving text, images and alphanumeric characters in one file:
Method 1: Using the "Publish" menu in MATLAB R2014a and later releases
Step 1: Create a MATLAB script with sections, comments and code that needs to be published
Step 2: Click on Publish Menu -> Publish
This step will create a HTML folder in your current directory and create an HTML file with published results from MATLAB script.
More information on publishing your code using MATLAB Desktop can be found in the link below:
Method 2: Using "publish" function in MATLAB
Step 1: Create a MATLAB script that needs to be published.
Step 2: Creating a PDF file using command line:
On MATLAB command line type:
>> publish('file_that_needs_to_be_published','pdf');
This command will create a PDF format file with published results in the HTML folder of your current directory.
More information on "publish" function and different supported formats can be found in the documentation link below:
Alternatively, you can also use the Report Generation Tool to generate reports containing text and code etc. : Formatting With MATLAB Report Generator
More information on the Report Generation Tool can be found in the link below:
Hope this helps.
Thanks
Sudhanshu Bhatt

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by