addoutputspec
동작점 사양에 출력 사양 추가
설명
예제
Simulink 모델을 엽니다.
sys = 'scdspeed';
open_system(sys)

모델에 대한 디폴트 동작점 사양 객체를 만듭니다.
opspec = operspec(sys)
opspec =
Operating point specification for the Model scdspeed.
(Time-Varying Components Evaluated at time t=0)
States:
----------
x Known SteadyState Min Max dxMin dxMax
___________ ___________ ___________ ___________ ___________ ___________ ___________
(1.) scdspeed/Throttle & Manifold/Intake Manifold/p0 = 0.543 bar
0.543 false true -Inf Inf -Inf Inf
(2.) scdspeed/Vehicle Dynamics/w = T//J w0 = 209 rad//s
209.48 false true -Inf Inf -Inf Inf
Inputs:
----------
u Known Min Max
_____ _____ _____ _____
(1.) scdspeed/Throttle perturbation
0 false -Inf Inf
Outputs: None
----------
이 모델에는 루트 수준의 아웃포트가 없기 때문에 디폴트 동작점 사양 객체에도 출력 사양이 없습니다.
rad/s to rpm 블록의 아웃포트에 출력 사양을 추가합니다.
newspec = addoutputspec(opspec,'scdspeed/rad//s to rpm',1);
출력 사양에 알려진 값인 2000rpm을 지정합니다.
newspec.Outputs(1).Known = 1; newspec.Outputs(1).y = 2000;
업데이트된 동작점 사양을 확인합니다.
newspec
newspec =
Operating point specification for the Model scdspeed.
(Time-Varying Components Evaluated at time t=0)
States:
----------
x Known SteadyState Min Max dxMin dxMax
___________ ___________ ___________ ___________ ___________ ___________ ___________
(1.) scdspeed/Throttle & Manifold/Intake Manifold/p0 = 0.543 bar
0.543 false true -Inf Inf -Inf Inf
(2.) scdspeed/Vehicle Dynamics/w = T//J w0 = 209 rad//s
209.48 false true -Inf Inf -Inf Inf
Inputs:
----------
u Known Min Max
_____ _____ _____ _____
(1.) scdspeed/Throttle perturbation
0 false -Inf Inf
Outputs:
----------
y Known Min Max Period PeriodicTolerance
_________________ _________________ _________________ _________________ _________________ _________________
(1.) scdspeed/rad//s to rpm
2000 true -Inf Inf -1 0.0001
Simulink 모델을 엽니다.
sys = 'scdspeed';
open_system(sys)

모델에 대해 디폴트 동작점 사양 객체로 구성된 3×1 배열을 만듭니다.
opspec = operspec(sys,[3,1])
opspec = Array of operating point specifications for the model scdspeed. To display an operating point specification, select an element from the array.
rad/s to rpm 블록의 아웃포트에 출력 사양을 추가합니다.
newspec = addoutputspec(opspec,'scdspeed/rad//s to rpm',1);
이 출력 사양은 opspec의 모든 동작점 사양 객체에 추가됩니다.
opspec의 각 사양마다 다른 출력 제약 조건을 지정할 수 있습니다. 예를 들어 각 사양마다 알려진 값을 서로 다르게 지정합니다.
newspec(1,1).Outputs(1).Known = 1; newspec(1,1).Outputs(1).y = 1900; newspec(2,1).Outputs(1).Known = 1; newspec(2,1).Outputs(1).y = 2000; newspec(3,1).Outputs(1).Known = 1; newspec(3,1).Outputs(1).y = 2100;
입력 인수
Simulink 모델의 동작점 사양으로, 다음 중 하나로 지정됩니다.
OperatingSpec객체 — 단일OperatingSpec객체에 출력 사양을 추가합니다.OperatingSpec객체로 구성된 배열 — 배열 내 모든OperatingSpec객체에 동일한 출력 사양을 추가합니다. 모든 사양 객체가 동일한Model속성을 가져야 합니다.
모델에 대한 OperatingSpec 객체는 operspec 함수를 사용하여 만듭니다.
출력 사양을 추가할 Simulink 블록으로, 블록 경로를 포함하는 문자형 벡터 또는 string형으로 지정됩니다. 이 block은 opspec.Model에 지정된 Simulink 모델에 있어야 합니다.
출력 사양을 추가할 출력 포트로, 범위 [1,N]에 있는 양의 정수로 지정됩니다. 여기서 N은 지정된 block의 출력 포트 개수입니다.
출력 인수
대체 기능
정상 상태 관리자
모델을 트리밍할 때 정상 상태 관리자를 사용해 출력 사양을 대화형 방식으로 추가할 수 있습니다. 자세한 내용은 Compute Operating Points from Specifications Using Steady State Manager 항목을 참조하십시오.
Simulink 모델
Simulink 모델에서 직접 출력 사양을 추가할 수 있습니다. 이렇게 하려면 사양을 추가하려는 신호를 마우스 오른쪽 버튼으로 클릭하고, 선형화 관리자 앱 섹션
에서 트리밍 출력 제약 조건
을 선택합니다.
버전 내역
R2006a 이전에 개발됨
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)