MATLAB Answers

slreq.generateReport() -- unrecognized method, property or field...

조회 수: 1(최근 30일)
Chris Paredis
Chris Paredis 2021년 2월 3일
댓글: Chris Paredis 2021년 2월 4일
According to the R2020b documentation, there should be a method for Simulink Requirements Sets called generateReport:
When I try to use it, I get the error:
Unrecognized method, property, or field 'generateReport' for class 'slreq.ReqSet'.
Is the documentation ahead of the release?

채택된 답변

ZQ
ZQ 2021년 2월 4일
Hi Chris,
Would you mind pasting the code snippet you used here? It looks like the prefix 'slreq' in the front of generateReport is missing.
For example:
reqSet = slreq.load('myReqSet.slreqx');
slreq.generateReport(reqSet);
But if the following command is used:
generateReport(reqSet);
this kind of error will be thrown.
Thanks,
ZQ
  댓글 수: 1
Chris Paredis
Chris Paredis 2021년 2월 4일
ZQ: thanks for the response. I mis-assumed that I could use this as a method applied to a ReqSet instance and used:
reqSet.generateReport()
Thanks for clarifying. This resolved the issue.

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

추가 답변(0개)

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by