INTRODUCING A DEFINED INPUT IN SIMULINK

조회 수: 1 (최근 30일)
Jacobo Puyoles
Jacobo Puyoles 2014년 9월 3일
편집: Jacobo Puyoles 2014년 9월 4일
I have a decreasing sine function over the interval of 13 seconds of which I do not know the mathematical equation but have specific values over time.
How can I introduce this function as an input signal in a Simulink model?? That is I want the same sine values over the same period of 13 seconds! Sure it is not hard, but can´t get into the solution.
The example sine function can be found attached
Thanks in advance!

채택된 답변

Rick Rosson
Rick Rosson 2014년 9월 4일
편집: Rick Rosson 2014년 9월 4일
Use the From Workspace block.
  댓글 수: 1
Jacobo Puyoles
Jacobo Puyoles 2014년 9월 4일
Yes I was trying before with From Workspace block but was having some trouble with the format of the variable, as it needs to have one column with time and other columns with data. But now it works!
Thank you Rick!

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

추가 답변 (1개)

Dishant Arora
Dishant Arora 2014년 9월 4일
Use inport block to read data from matlab workspace. Check this inport
  댓글 수: 1
Jacobo Puyoles
Jacobo Puyoles 2014년 9월 4일
편집: Jacobo Puyoles 2014년 9월 4일
Dishant, I do not know how to use "In" source block to import data from workspace, but I used From Workspace block and it works just fine.
Thanks anyway!

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by