Simulink Requirements: sorting the requirement based on the slreq editor

조회 수: 2 (최근 30일)
Marco Massaro
Marco Massaro 2020년 1월 9일
편집: Marco Massaro 2020년 1월 9일
Hello all,
I am used to open a requirement set as explained in the documentation:
req = find(ReqSet);
But, even if I change the sorting of requirements using the slreq editor (by the 'Move up/down' commands), when I run the code above once again, any "new" sorting is not implemented: req has always the same ordering of when I created the requirement.
How to make any new sorting of the requirement made by the editor effective also using 'find' ?

답변 (1개)

Yasumitsu Ito
Yasumitsu Ito 2020년 1월 9일
Hello Marco,
ch = ReqSet.children;
should return ordered list of child requirements of the ReqSet.
Please note that sorting on the requirements editor by clicking a column header (not by the Move up/down) will not be effective as it doesn't change phycial order of requirements.
  댓글 수: 1
Marco Massaro
Marco Massaro 2020년 1월 9일
편집: Marco Massaro 2020년 1월 9일
Yes, but what I meant is that if I want to modify the order manually by Move up/down (e.g. I specified a section number in the Summary field), the sorting is lost after using 'find'.

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by