필터 지우기
필터 지우기

Matlab to s-function level2

조회 수: 1 (최근 30일)
dab483
dab483 2014년 3월 18일
댓글: Kaustubha Govind 2014년 3월 20일
Let say this is my algorithm in s-function level2
function Update(block
meas = block.InputPort(1).Data; %%equivalent to meas(:,i+1) in matlab
xhat = block.Dwork(1).Data; %%equivalent to xhat(:,i+1) in matlab
now i want to use data which is equivalent to Matlab as ['meas(:,i)' and 'xhat(:,i)']. where should i find this data in sfunction level2? or how should i store this in s-fumction level2?
Thnak you.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2014년 3월 20일
Your question is not clear. Do you mean that you expect your input and dwork data to come in as 2-D arrays, but find that they are not?

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

답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by