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

4 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Sudhanshu Bhatt
Sudhanshu Bhatt el 22 de Jul. de 2015
Editada: Sudhanshu Bhatt el 22 de Jul. de 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

Más respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by