Community Profile

photo

Rahul Singhal


MathWorks

30 total contributions since 2017

Contact

Rahul Singhal's Badges

  • Revival Level 2
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How do I set text to left or right side in tables generated in report generator?
Hi Per, As you want content of some columns to be aligned to the left and content of some columns to be aligned to the right, y...

2 months ago | 1

| accepted

Answered
How to not include an element in the Table of Content?
Hi Jack, As mentioned in the answer of the linked question, the TOCObj property of TableOfContents reporter was added in R201...

2 months ago | 0

| accepted

Answered
Make every column of Table the same size
Use mlreportgen.dom.ResizeToFitContents format, see https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.resizetofitcontents...

3 months ago | 0

| accepted

Answered
Report generator only showing names of the objects instead of their content
Answered here: https://www.mathworks.com/matlabcentral/answers/473437-report-only-showing-names-of-the-objects-instead-of-their-...

3 months ago | 0

Answered
Make first row of Formal Table bold
Hi Jack, I think you want the header row of the FormalTable to be bold. Below example demostrates how to style the header fir...

3 months ago | 0

| accepted

Answered
Report only showing names of the objects instead of their content
You can not add Report API objects like TitlePage to a DOM Document. Use mlreportgen.report.Report instead of the DOM Document. ...

3 months ago | 0

| accepted

Answered
Make first column of table bold
Hi Jack, You can use the ColSpecGroups property of the FormalTable to format one or more columns in the table. Use the Bold for...

4 months ago | 0

| accepted

Answered
How to center Image
Hi Jack, I am not sure about the error, but in your code you are overriding the Style property value of the Image. So the Heigh...

4 months ago | 0

| accepted

Answered
How to add sections to PowerPoint with MATLAB Report Generator
Hi Ruixin, Currently, the MATLAB Report Generator's PPT API does not support creating sections programmatically. The team plan...

4 months ago | 1

| accepted

Answered
how to close open pdf file generated by report generator before running code for another subject again.
Hi Sonia, Starting R2018b, you can use close or closeAll methods of mlreportgen.utils.rptviewer class to close the open PDF r...

4 months ago | 0

Answered
How do I insert *.png figures directly into a Report Generator word document?
Hi Richard, Your first attempt, i.e., using the mlreportgen.dom.Image class, was the right way to add an image to the report....

4 months ago | 1

| accepted

Answered
Adjust distance between snapshot and caption (report generator)
Hi Martin, You can customize the Figure reporter's template to adjust the distance between the generated figure and caption by ...

4 months ago | 0

| accepted

Answered
Format table for mlreportgen.ppt
Hi Tristany, Currently, the programmatic table formating options are limited for the PowerPoint API and the team is working t...

4 months ago | 0

Answered
Appending HTML to document object adds additional unwanted tags.
Hi Aidan, If you want to add HTML content in a HTML report, and do not want additonal tags to be created, you can use the DOM m...

4 months ago | 0

| accepted

Answered
How can I insert a variable in a paragraph using Report Generator?
You can report on a variable using mlreportgen.report.MATLABVariable reporter class.

7 months ago | 0

Answered
How to centre align a table with width>100%?
If the |Width| of a |Table| is defined in percentage, it denotes the percentage of the page width it should take to render that ...

1 year ago | 0

Answered
How do I align this table to the centre?
You can use the |HAlign| property of the |Table|. See <https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.table-class.h...

1 year ago | 0

Answered
MATLAB telling me I need product licenses for things I'm not using?
An |Image| can not be directly appended to a |TableRow|. I would suggest to create a |TableEntry| with the |Image|, and then ap...

1 year ago | 2

| accepted

Answered
how to make a custom horizontal alignment in mlreportgen.dom.*?
Hi Aju, The team has a planned enhancement to support multi-column page layout and will be available in future releases. As a...

1 year ago | 0

Answered
How to insert an image to table entry in this situation in Report Generator ?
Hi Tong, For the case where you are updating the |Content| property to change the text in a table entry, that particular chil...

1 year ago | 0

| accepted

Answered
How to change the position of table in Report Generator?
Hi Tong, The default layout of the page defines the size for the page margins (top, bottom, left, right) to be "1in" each and...

1 year ago | 1

| accepted

Answered
How to create a PDF report with for-loop in Reporter Generator?
Below is a sample code to create a new landscape chapter for every image and add them to the report: import mlreportgen.rep...

1 year ago | 0

| accepted

Answered
How to change fontsize in the report generator explorer?
Hi Baptiste, In Report Explorer, are you using the new pipeline to generate reports, i.e., reports whose output type is templ...

1 year ago | 0

| accepted

Answered
How to I save the report generated in the current folder ?
See the setup file which specifies the file name for the generated report and the directory where it is saved. Alternatively,...

1 year ago | 0

| accepted

Answered
Multiple reports using Report Generator code
Similar to: <https://www.mathworks.com/matlabcentral/answers/385718-programmatically-generating-report-generator> Make sure t...

1 year ago | 0

Answered
Programmatically generating Report Generator
Hi, From the code it seems that the output report name is always kept the same. So if you generate multiple reports in a loop...

1 year ago | 0

Answered
How can I run a report generator file from the command window?
From the command window, you can use the |report| command to generate report from a setup file ( |.rpt|) file. See <https://www....

1 year ago | 0

Answered
Report Generator: Error when defining table column width in percent (fo:table-cell)
I am not able to reproduce this issue, but the possible reason can be that in R2017a, the default table layout for PDF output wa...

2 years ago | 0

Answered
Report Generator: How to change horizontal text alignment for individual columns of the same table?
The |Style| property of |TableCopSpec| can be used to apply any format to one or more adjacent table columns. The below script w...

2 years ago | 0

| accepted

Answered
Having trouble with fonts and centering a plot using Report Generator
For |Direct PDF (from template)| output type, the issue regarding the alignment of the plots, created using the Report Explorer'...

2 years ago | 0