%% Transformation of a model grid into vector used in inversion %% ============================================================================ %% %% Parameters: %% model - the model structure as described in code 'trace_ray' %% vect - model parameters as a single column vector %% Returns: %% grid - 2-D matrix representing the spatial grid function vect = grid2vect(model,grid) vect = reshape(transpose(grid),model.ncells,1); end