フィルターのクリア

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