How to input double in simulink + sfunction

조회 수: 5 (최근 30일)
Naowarat
Naowarat 2014년 3월 29일
댓글: Kaustubha Govind 2014년 3월 31일
Hi, I want to create a block where user can input data into simulink in order to run the program. But i don't know how to do that part and if i want to do so, do i need to make any changes in my s-function?
Also i have been trying to create s-function but it doesn't work out. It has given me this error: Undefined function 'sfunction.m' for input arguments of type 'Simulink.MSFcnRunTimeBlock'. Can anyone plz tell me what it is. This is my first time working on s-function and it is very confusing.
Thank you for your help.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2014년 3월 31일
First, it's not clear that you need an S-function here. Do you need the user to enter an input at every time-step in the simulation, or up-front at the beginning of simulation? Only use an S-function if you want the former.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by