0 svar
132 visningar
civilingengör 193
Postad: 4 dec 2023 07:21

Simulering av hjärtcykel

Givet "the paper": 

https://lucris.lub.lu.se/ws/portalfiles/portal/109257090/soltesz21c.pdf

skall en kod i matlab skrivas enligt följande instruktioner:

(även data för pressure och flow under en cardiac cycle är givet)

Simulate the system and plot the results corresponding to
the solid green waveform in the top pane of Figure 2 of the paper, as well as the solid
blue waveform from the same figure for reference. You will probably not obtain a plot
similar to the solid green waveform. The reason is that the transient from the initial
state, which is set to the zero vector within "lsim" unless explicitly specified, has not settled.

där "lsim" simulerar lösningen till ekvationssystemet av differentialekvationer. Jag antar att jag får inkorrekta kurvor då jag inte har något "initial value" givet i "lsim", men jag vet inte hur detta skall uttryckas. Dessutom misstänker jag att insignalen "u" måste uttryckas som en funktion av "t" men jag vet inte hur.

Svara Avbryt
Close