how to coordinate the clock bettwen simulink and matlab

2 ビュー (過去 30 日間)
Nelcy Porras
Nelcy Porras 2018 年 11 月 19 日
回答済み: Sabin 2024 年 1 月 21 日
Hello everyone
I am doing a control of the solar panel with a MPPT( maximun point tracking) with a resonance convertors in matlab but and the same time I have my simulation block in simulink. What I want to do is have a delay in my .m funtion but at the same clock time with simulink. If I do a 0.2s delay in matlab is not the same 0.2s in Simulink.
I want to get my data after 0.2s in my funtion in .m without affecting the running time in simulink.
I already tried pause on, clock but does not work.

回答 (1 件)

Sabin
Sabin 2024 年 1 月 21 日
It is possible to implement a MATLAB function in Simulink with a MATLAB function block:

カテゴリ

Help Center および File ExchangeSolar Power についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by