Rectangular pulse for input species

Aaron S el 2 de Sept. de 2021 (Editada a las el 2 de Sept. de 2021)
Actividad más reciente Edición por Aaron S a las el 8 de Mzo. de 2023

Hello

I would like to pulse an input species. I read in the forums that repeated assignments can be used for this, but I am not exactly sure how to implement this. This is the MATLAB code that resembles what I would like the input pattern to be:

t = 0:1/1e3:60;
d = [10:2:30]';
x = @rectpuls;
y = pulstran(t,d,x);
plot(t,y)
hold off
xlabel('Time (s)')
ylabel('Waveform')

Thanks for any help! Aaron

VBBV
VBBV el 7 de Mzo. de 2023

Can you tell what you mean by repeated assignments more clearly ?

Arthur Goldsipe
Arthur Goldsipe el 7 de Mzo. de 2023
There's actually a SimBiology example that is quite similar to a pulse: https://www.mathworks.com/help/simbio/ug/deterministic-simulation-of-a-model-containing-a-discontinuity.html
Is that close enough to answer your question?
Aaron S
Aaron S el 8 de Mzo. de 2023 (Editada a las el 8 de Mzo. de 2023)

Thank you for this. We ended up using events and triggers in the simbiology model builder interface which was a good workaround to what we were aiming for. https://jneurodevdisorders.biomedcentral.com/articles/10.1186/s11689-022-09431-3

Aaron S
1
Publicación
4
Responder