Several heaviside step functions in a row
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi there,
I am currently doing a simulation where a cell is injected with a train of currents for 2mS at every 22mS (so 2ms of current, 20ms rest) for 5 times.
This is what I have:
syms t
Iapp=(heaviside(20+2-t)-(heaviside(20-t)));

Basically, I need 4 more of this step function next to this first one. I hope my issue is understandable and someone is able to help me!
Thank you!
0 Commenti
Risposte (1)
  Walter Roberson
      
      
 il 16 Dic 2015
        Iapp = sym(0);
for T = 20:20:100
  Iapp = Iapp + (heaviside(T+2-t)-(heaviside(T-t)));
end
0 Commenti
Vedere anche
Categorie
				Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!