필터 지우기
필터 지우기

How to define a port signal variable in a M-file

조회 수: 1 (최근 30일)
zhang mingjuan
zhang mingjuan 2015년 7월 16일
How to define a port signal variable in a M-file just use one sentence eg. I want to set its DataTyte ,InitialValue,Min,Max and so on. Maybe I can do it as follows: canFaultFlag = mpt.Signal; canFaultFlag.DataType = 'boolean'; canFaultFlag.InitialValue = '0'; ... But how can I finish it in one sentence and which function I can use to create a signal varialbe?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by