Aaron S in Discussions
Letzte Aktivitätam 8 Mär. 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 Rectangular pulse for input species 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? Can you tell what you mean by *repeated assignments* more clearly ? 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 simbiology pulse train repeated assignment rate rule
Aaron S in MATLAB Answers
Letzte Aktivitätam 3 Sep. 2021

I would like to pulse an input species in Simbiology. I read in a previous answer that repeated assignments can be used to accomplish this. However, I am unclear how to do this. The following is MATLAB code for generating the pulse that I would like the species concentration to follow: t = 0:1/1e3:60; d = [0:2:60;sin(2*pi*0.05*(0:2:60))]'; x = @rectpuls; y = pulstran(t,d,x); plot(t,y) hold off xlabel('Time (s)') ylabel('Waveform') Output: Any help is appreciated as to how I can accomplish this in Simbiology. Aaron
Shivam Thakker in MATLAB Answers
Letzte Aktivitätam 25 Jun. 2021

When I am writting a rate rule I am getting this above error message. My rule is LuxI = (1/Tx) ∗ (((tl_luxI ∗ [mRNA_luxI]) ∗ Tx) − ((dLuxI ∗ [LuxI]) ∗ Tx)) I have seen some of the error messages answers of Matlab but nothing worked in my case.Kindly help me with this.