Aufgrund einer Wartung wird GitLab am 28.09. zwischen 10:00 und 11:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 28.09. between 10:00 and 11:00 am.

Commit 6247308b authored by Marco Berzborn's avatar Marco Berzborn

bugfix for nonexisting titles in surf for itaSamplingSph

parent 6f706482
......@@ -10,8 +10,7 @@ function varargout = surf(this, varargin)
% [input,sArgs] = ita_parse_arguments(sArgs,varargin);
numArgIn = nargin;
titleString = [];
% check if SH coefs are given
if numel(varargin{1}) > 0 &&...
......@@ -25,7 +24,6 @@ if numel(varargin{1}) > 0 &&...
nSHGrid = size(this.Y,2);
nSHData = size(varargin{1}(:),1);
if nSHGrid ~= nSHData
% error('the spherical harmonics dimensions don''t fit');
% TODO make autofit
if nSHGrid > nSHData
varargin{1} = [varargin{1}(:); zeros(nSHGrid - nSHData,1)];
......@@ -49,7 +47,7 @@ end
hFig = {surf@itaCoordinates(this, varargin{:})};
% set title
if numel(titleString)
if ~isempty(titleString)
title(titleString);
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment