Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e25b36b8e1
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.762 kb
function verifyHeaderStructWithX(header,x)
xsize = size(x);
xcomplex = ~isreal(x);
dims = length(xsize);
assert(header.dims==dims,'Fatal error: wrong header.dims')
assert(norm(header.size-xsize)==0,'Fatal error: wrong header.size')
assert(length(header.origin)==dims,'Fatal error: wrong header.origin')
assert(length(header.delta)==dims,'Fatal error: wrong header.delta');
assert(strcmp(header.precision,'single')|...
strcmp(header.precision,'double'),'Fatal error: wrong header.precision');
assert(header.complex==xcomplex,'Fatal error: wrong header.complex');
assert(length(header.unit)==dims,'Fatal error: wrong header.unit');
assert(length(header.label)==dims,'Fatal error: wrong header.label');
end
Jump to Line
Something went wrong with that request. Please try again.