Error in evaluating report (.RPT) file
显示 更早的评论
Hello all,
i have one .RPT file to generate a pdf report. i make use of struct in this RPT file.
i was evaluating this RPT file in my main_script.m and i had struct locally present so it was working fine till now.
report 'SAMReport_PDF_V5_0'; %SAMReport_PDF_V5_0.RPT is my report generation file
but now in the main_script.m i have introduced another function say by name new_function.m and i pass the same struct to this function. but when i evaluate report file from this function it is unable to access struct. why am i seeing this ?
I feel the struct is not visible to .RPT file in new_function.m because %<VariableName> notation is not working now in .RPT file, but i dont understand why because i am able to acess struct locally in that function
new_function(struct);
%code for new function
function new_function(struct)
report 'SAMReport_PDF_V5_0'; %here my report execution throws error. it is unable to read and access fields of struct
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Report Generator Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!