필터 지우기
필터 지우기

Info

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

Add values trough time

조회 수: 2 (최근 30일)
Kris
Kris 2012년 4월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I have got the following problem:
I have a system wich has a certain ammount of energy in it [kJ]. Outside of that system i have another system requesting energy trough time. Each second the second system would take away a part of the first system's energy. When the first system is empty it needs to regain energy.
So basicly i calculated the amount of energy in the first system and i created an energy request with the system builder block. Now i need to know after how many seconds my first system is empty.
How it works: System 1: 10000 kJ System 2: s1: 1000 kJ, s2: 3000 kJ, s3: 5500 kJ, s4: 3500 kJ
So after 3 seconds the first system will be at: 500 kJ wich is too few to deliver at system two in the 4th second.
The answer i would like to get is how many seconds i can supply system two with energy. Simulink needs to stop counting when system 1 is empty
I assumed i could compare the values like this:
If system 1 > system 2 then ...
How do i do this?
Kind regards,
Kris

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by