How can i run my .m file of Report Generator?

조회 수: 3 (최근 30일)
Guglielmo
Guglielmo 2024년 7월 9일
편집: Guglielmo 2024년 7월 12일
Hi, I wanted to know how to use the .m file from my report that I customized and saved with the "Generate MATLAB File" option, because I need to use that .m file in a MATLAB function. But when I run the .m file, it doesn't generate any report. It only shows this:
What can i do?
Thanks
How i generate the .m:
  댓글 수: 1
Garmit Pant
Garmit Pant 2024년 7월 9일
Please share the RPT-file if it is possible.

댓글을 달려면 로그인하십시오.

채택된 답변

Garmit Pant
Garmit Pant 2024년 7월 9일
Hello Guglielmo
MATLAB Reports generated as MATLAB code using the Report Explorer can be run using the “report” MATLAB function.
After generating the M-File from a report setup RPT-File using the ‘Generate MATLAB File’ option, the M-File generated needs to be used with the “report” function to generate the report as follows:
% Assuming the name of your generated M-File as ‘buildSSD_prova’
report(buildSSD_prova)
The above command will generate the report.
Kindly follow the following MATLAB example to better understand the Report Generation from MATLAB Code workflow better:
I hope you find the above explanation and suggestions useful!
  댓글 수: 2
Guglielmo
Guglielmo 2024년 7월 10일
Really Thanks.
Guglielmo
Guglielmo 2024년 7월 12일
편집: Guglielmo 2024년 7월 12일
@Garmit Pant Can I ask you how to set the report so that I can choose the destination folder through a classic selection screen? I tried using:
path = uigetdir();
report(buildSDD_prova, path);
But it didn't work.
Thanks for your help

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Reporting and Database Access에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by