Code covered by the BSD License
 ...
 BHT_operators(r,z,K1,K2,P...Authored by Joshua Soneson 2007
 BHT_parameters(z,r,H)Authored by Joshua Soneson 2007
 BHT_plots(z,r,t,t_peak,Tp...Authored by Joshua Soneson 2007, updated 2010
 KZK_axial_plots(z,Ix,p5,H...Authored by Joshua Soneson 2007
 KZK_operators.mAuthored by Joshua Soneson 2007
 KZK_radial_plots(r,Ir,H,p...Authored by Joshua Soneson 2007
 TDNL(u,U,X,K,J,c,cutoff,P...Authored by Joshua Soneson 2007, updated 2010
 axisymmetricBHT(z,r,H)Authored by Joshua Soneson 2007, updated 2010
 axisymmetricKZK.mAuthored by Joshua Soneson 2008, updated 2010
 computational_grid.mAuthored by Joshua Soneson 2007
 equivalent_time.mAuthored by Joshua Soneson 2007
 initial_condition(J,K,G,r...Authored by Joshua Soneson 2007, updated 2010
 matrixize(v,A,J,K)Authored by Joshua Soneson 2007
 plot_waveform(p0,f,X,z,K)Authored by Joshua Soneson 2007
 timing(p1,p2,t_start,z,d)Authored by Joshua Soneson 2007
 vektorize(v,A,J,K)Authored by Joshua Soneson 2007

View all files
High intensity focused ultrasound simulator
by
Josh Soneson
29 Mar 2011
Simulates high intensity focused ultrasound beams and heating effects in layered media

timing(p1,p2,t_start,z,d) 
%% Authored by Joshua Soneson 2007
function[p1] = timing(p1,p2,t_start,z,d)
% Determines the amount of CPU time since t_start was determined
if(p2>p1)
time = etime(clock,t_start);
h = floor(time/3600);
time = time  h*3600;
m = floor(time/60);
time = time  m*60;
p1 = p2;
fprintf('\t\t%2.1f\t%d:%d:%2.1f\n',z*d,h,m,time);
end


Contact us