필터 지우기
필터 지우기

Doubt with the simulink units.

조회 수: 5 (최근 30일)
Carlos
Carlos 2016년 2월 19일
댓글: Ralf 2016년 3월 18일
I have made a model with time in hours. The simulation in simulink (the scope) shows it in hours or in seconds? Thank you so much.
  댓글 수: 1
Carlos
Carlos 2016년 2월 21일
Some help please?

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

답변 (1개)

Ralf
Ralf 2016년 2월 19일
It shows the time in seconds.
  댓글 수: 2
Carlos
Carlos 2016년 2월 19일
But... how is it done? I mean, if my differential equations are all in hours, how is it possible that simulink calculates in seconds? And, then, what is the best option, to change all the differential equations to seconds?
Ralf
Ralf 2016년 3월 18일
Simulink assumes that one simulation step equals one second. If you model your system using time constants in hours, one Simulink time step equals one hour. If you set for example Simulation end time to 10, it would mean 10 hours.
That would work as long as you are using Simulink alone and as long as you model all time constants in Units of hours. But in case you use one of the physical modeling toolboxes like Simscape, Simulink assumes that one step equals one second. In case you want to simulate your model in conjunction with these physical modeling toolboxes, you'll need to rewrite your model to a timescale in seconds.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by