Artifact 3653e4fcc149a2b0055eb4af70a7d125d6aeba44d618c8ce8f22edec2b583986:
- Executable file mtt/bin/trans/m/mtt_euler.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 310) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/m/mtt_euler.m — part of check-in [406757eed0] at 2000-12-27 16:06:17 on branch origin/master — *** empty log message *** (user: gawthrop@users.sourceforge.net, size: 310) [annotate] [blame] [check-ins using]
function [x] = mtt_euler(x,dx,dt,Nx,open) # Euler update I_open = nozeros(open.*[1:Nx]'); # Indices of open switches x(I_open) = 0.0; # Open switches have zero state I = nozeros(!open.*[1:Nx]'); # Indices of states to update x(I) = x(I) + dx(I)*dt; # Update states except open switches. endfunction;