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

2 views (last 30 days)
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

Accepted Answer

Sudhanshu Bhatt
Sudhanshu Bhatt on 22 Jul 2015
Edited: Sudhanshu Bhatt on 22 Jul 2015
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

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!