Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

removeThreshold

클래스: slmetric.config.ThresholdConfiguration
네임스페이스: slmetric.config

(제거 예정) 임계값 구성 개체에서 임계값 개체 제거

Metrics Dashboard 사용자 인터페이스, metricdashboard 기능, slmetric 패키지 API 및 해당 사용자 정의는 향후 릴리스에서 제거될 예정입니다. 자세한 내용은 Migrating from Metrics Dashboard to Model Maintainability Dashboard를 참조하세요.

설명

임계값 구성 개체에서 임계값 개체를 제거합니다.

예제

removeThreshold(TC,T)slmetric.config.ThresholdConfiguration 개체 TC에서 slmetric.config.Threshold 개체 T를 제거합니다.

입력 인수

모두 확장

slmetric.config.Threshold 개체를 제거하려는 slmetric.config.ThresholdConfiguration 개체입니다.

데이터형: char

slmetric.config.ThresholdConfiguration 개체에서 제거하려는 slmetric.config.Threshold 개체입니다.

데이터형: char

예제

모두 확장

getThresholds 방법을 사용하여 slmetric.config.ThresholdConfiguration 개체에 속하는 slmetric.config.Threshold 개체를 식별합니다. 그런 다음 removeThreshold 메서드를 사용하여 slmetric.config.Threshold 개체를 제거합니다.

slmetric.config.ThresholdConfiguration 개체 TC의 경우 getThresholds 방법을 사용합니다.

A = getThresholds(TC)
A = 

  1×2 Threshold array with properties:

    MetricID
    AppliesTo

slmetric.config.ThresholdConfiguration 개체 TC에는 두 개의 slmetric.config.Threshold 개체가 포함되어 있습니다.

slmetric.config.ThresholdConfiguration 개체에서 제거할 slmetric.config.Threshold 개체를 식별합니다.

A.MetricID
ans =

    'mathworks.metrics.SimulinkBlockCount'


ans =

    'mathworks.metricchecks.SubSystemCount'

mathworks.metricchecks.SubSystemCount 메트릭에 해당하는 배열의 두 번째 요소를 제거합니다.

removeThreshold(TC,A(2))

이제 slmetric.ThresholdConfiguration 개체에는 mathworks.metricchecks.SubSystemCount 지표에 해당하는 하나의 slmetric.config.Threshold 개체가 포함됩니다.

getThresholds(TC)
ans = 

  Threshold with properties:

     MetricID: 'mathworks.metrics.SimulinkBlockCount'
    AppliesTo: 'Value'

버전 내역

R2018b에 개발됨

모두 축소

R2022a: Metrics Dashboard이 제거됩니다

Metrics Dashboard 사용자 인터페이스, metricdashboard 기능, slmetric 패키지 API 및 해당 사용자 정의는 향후 릴리스에서 제거될 예정입니다. 자세한 내용은 Migrating from Metrics Dashboard to Model Maintainability Dashboard를 참조하세요.