How do I generate a rectangular pulse for an input species in Simbiology?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Community
Più risposte nel SimBiology Community
Categorie
Scopri di più su Scan Parameter Ranges in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
