Info

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

what does this simulink command mean ?

조회 수: 1 (최근 30일)
pemfir
pemfir 2013년 8월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
I recently came across this command in an .m file
sim('kalmanfilter',[0 100],[],[0 20]);
[0 100] is the time span of the simulation
[] ? i do not know what that is
[0 20] is the input to the model. I just do not know how simulink knows that [0 100] is the time-span or [0 20] is the input range. the help document does not help.
Thanks.

답변 (1개)

Grzegorz Knor
Grzegorz Knor 2013년 8월 13일
  • [0 100] is the time span,
  • [] - here you can put a option structure, which can modify simulation settings. You can change simulation setting by means of simset function,
  • [0 20] this is the external input to the model.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 8월 13일
pemfir: You are using the backwards-compatible (older) syntax of the SIM command. See documentation here.

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by