Connecting two subsystems with input-output
古いコメントを表示
Hello all, I have a big problem that I have no idea how to cope with after several days of research and trying. I have model of two ODEs (see picture) and want to connect them. First starts the first model and I compare output to a constant(3 to be specific), if it is smaller than that, second program starts with the output of the first model as an input. Similarly its output is compared to a constant and if it exceeds it goes back to the first model. I would like the final graph to be something like this: I have tried all possible combination of IF, while, do while, switches, you name it, but no success. It should represent temperature in fridge and please forgive my terrible painting, you get the point.
Is it even possible? If you help, I owe you big time, whatever just to solve this.
Thank you very much
4 件のコメント
madhan ravi
2020 年 5 月 28 日
Could you share the picture of your model and equation as well?
Matej Lukac
2020 年 5 月 29 日
編集済み: Matej Lukac
2020 年 5 月 29 日
Matej Lukac
2020 年 5 月 29 日
編集済み: Matej Lukac
2020 年 5 月 29 日
madhan ravi
2020 年 5 月 29 日
編集済み: madhan ravi
2020 年 5 月 29 日
I think you just over complicate the problem. Why not simply use a product block with one input as k and the other as Delta T and the output is T dot? And use this output for comparison?
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Subsystems についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

