% Plots depth section % % Input parameters: % x - distance coordinates for the section % z - depth coordinates for the section % section - trace section as returned by 'reflection()' or 'scattering_ellipse()' function plot_Zsection(x,z,section,X_axis_label,linestyle) % scale the section for convenient viewing section = section / max(max(section))*range(x)/length(x); clf hold on % # plot traces one by one, vertically, downward set(gca,'YDir','reverse'); % reverse the vertical axis xlabel(X_axis_label); ylabel('Depth (m)'); for i=1:size(section,2) plot(section(:,i)+x(i),z,'b-'); end end