-
Layla Riemann authored
Update main, c_str.m, README.txt, Recon_Spectro_MB.m, fftnsh.m, parse_xprot.m, rot90.m, rsos.m, multiprod.m, catstruct.m, rdMeas_TXfct.m, GRAPPA_MB2aa_asym_kernel_new_blocking.m, parse_mrprot.m, sortMeas_TXfct.m, strtok.m, strcat.m files
Layla Riemann authoredUpdate main, c_str.m, README.txt, Recon_Spectro_MB.m, fftnsh.m, parse_xprot.m, rot90.m, rsos.m, multiprod.m, catstruct.m, rdMeas_TXfct.m, GRAPPA_MB2aa_asym_kernel_new_blocking.m, parse_mrprot.m, sortMeas_TXfct.m, strtok.m, strcat.m files
rsos.m 504 B
function out = rsos(datain, whichdim)
%*************************************************************************
% function calculates the sum of squares along dimension whichdim
%
%
% INPUT:
% datain data with arbitrary array size
% whichdim sum of squares is taken along this dimension
%
% OUTPUT:
% out
%
% OPTIONS:
% none
%
% EXAMPLE:
%---------
%*************************************************************************
out = sqrt(sum(abs(datain).^2,whichdim));
end