Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

S-function level 2 -workspace dimension

조회 수: 1 (최근 30일)
want2know
want2know 2013년 10월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
Dear Sir/Madam,
I want only single data at each time, but the system gave me four values at a single time, what is wrong it? I am using S-function level 2.
function SetInpPortDims(block, idx, fd) block.InputPort(1).Dimensions = 4; block.InputPort(2).Dimensions = 4; block.InputPort(3).Dimensions = 4;
function SetOutPortDims(block, idx, fd) block.OutputPort(1).Dimensions = 4;
My Simulink system is as shown in http://imgur.com/uQAbK3w
but what I want is,at t=0, data=20,at t=1, data=20.1,at t=2, data=20.2,at t=3, data=20.2,
If I change the dimension from 4 to 1, I got this error code "Level-2 MATLAB S-Function cannot use 'set default dimension function'."
  댓글 수: 1
want2know
want2know 2013년 10월 31일
anyone please?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by