Check if property is dependent

조회 수: 15 (최근 30일)
Jurgen
Jurgen 2017년 12월 20일
댓글: Jurgen 2017년 12월 20일
I'm trying to write a method that checks if the non-dependent properties of a class are initialized properly. Using ` fieldnames` I can get all non-hidden properties and iterate over them, but can I then discriminate between dependent and non-dependent? I don't want to make the dependent properties hidden.

채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 20일
  댓글 수: 1
Jurgen
Jurgen 2017년 12월 20일
Thanks, I skimmed over that one before, must have missed it. It even has a full implementation of a findAttribute function for finding the dependent properties.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by