File created using Matlab File Generator is empty (0 bytes)
1 view (last 30 days)
Show older comments
stefan Chytra
on 28 Apr 2021
Commented: stefan Chytra
on 28 Apr 2021
Hi,
Its the first time I have used matlab report generator & think I am following the very simple online video but the file I save is empty.
The very simple code I am using is;
import mlreportgen.report.*
R=Report('Simple','pdf')
open("R")
surf(peaks)
add(R,Figure)
Can some please help?
Thankyou
Stefan
0 Comments
Accepted Answer
More Answers (1)
Jan
on 28 Apr 2021
Edited: Jan
on 28 Apr 2021
Taken from the documentation:
import mlreportgen.report.*
import mlreportgen.dom.*
R=Report('Simple', 'pdf')
surf(peaks)
add(R, Figure)
close(R);
% Now you can view the report:
rptview(rpt)
I assume, your open("R") opens the empty report directly after the creation.
See Also
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!