How to use different sampling times for 2 blocks in the same simulink model?
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Lucky
am 13 Aug. 2020
Kommentiert: Lucky
am 20 Aug. 2020
I am trying to write a RLS (Root Least squares) algorithm. I am using ode4(Runge-kutta) as my solver with a fixed step size of 0.001 seconds for my mathematical system but for RLS algorithm, I want the sample time to be 0.1 s. I have tried using sleep, pause in the RLS simulink block but doesnot seem to be working as the output I am getting is wrong. The top block is RLS block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/345672/image.png)
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 13 Aug. 2020
It looks like a MATLAB Function block. Right click it, select "Block Parameters (Subsystem)", specify sample time as 0.1. You might need some Rate Transition blocks to resolve the resulting sample time issues.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Array and Matrix Mathematics finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!