%% Transformation of a vector used in inversion into 2-D grid for plotting %% ============================================================================ %% %% Parameters: %% model - the model structure as described in code 'trace_ray' %% vect - all model parameters (e.g., slownesses) in single column vector %% Returns: %% grid - 2-D matrix representing the spatial pattern of 'vect' function grid = vect2grid(model,vect) grid = transpose(reshape(vect,model.nz,model.nx)); end