function s = char(sR)
% convert spherical region to char

switch length(sR.N)
  case 0
    s = 'full sphere';
  case 1
    if sR.isUpper
      s = 'upper hemisphere';
    else
      s = 'lower hemisphere';
    end
  otherwise
    s = 'sector';
end

end

mtex-toolbox
github-repos/MATLAB/mtex-toolbox-mtex/mtex-f0ce46a720935e9ae8106ef919340534bca1adcb/geometry/@sphericalRegion/char.m
mtex
github-repos/MATLAB/mtex-toolbox-mtex
f0ce46a720935e9ae8106ef919340534bca1adcb