Unable to replicate example from matlab webiste for Report generator
显示 更早的评论
Good afternoon everybody,
I get a weird error from Matlab when I try to execute the code which is avilable at this web-page https://it.mathworks.com/help/rptgen/ug/create-a-report-generator.html
If I try to execute line by line I'm stopped at the first "append" istance of the script.
What is the reason? Thank you for your help.
import mlreportgen.report.*
import mlreportgen.dom.*
rpt = Report('magic','html');
tp = TitlePage;
tp.Title = 'Magic Squares';
tp.Subtitle = 'Columns, Rows, Diagonals: All Equal Sums';
tp.Author = 'Albrecht Durer';
append(rpt,tp);
Error using append (line 49)
Input must be a string array, character vector, or cell array of character vectors.
2 个评论
Cris LaPierre
2020-11-10
编辑:Cris LaPierre
2020-11-10
Works for me in R2020b. What version of MATLAB are you using?
David Rayner
2020-11-18
Same error here R2019b.
says Introduced in R2020b
Hmm... might be time for an upgrade...
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Report Generator Task Examples 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!