Commit 8e82dc51 authored by Marco Berzborn's avatar Marco Berzborn

bugfix for nonexisting titles in surf for itaSamplingSph

parent c0ab4c92
...@@ -10,8 +10,7 @@ function varargout = surf(this, varargin) ...@@ -10,8 +10,7 @@ function varargout = surf(this, varargin)
% [input,sArgs] = ita_parse_arguments(sArgs,varargin); % [input,sArgs] = ita_parse_arguments(sArgs,varargin);
numArgIn = nargin; titleString = [];
% check if SH coefs are given % check if SH coefs are given
if numel(varargin{1}) > 0 &&... if numel(varargin{1}) > 0 &&...
...@@ -25,7 +24,6 @@ if numel(varargin{1}) > 0 &&... ...@@ -25,7 +24,6 @@ if numel(varargin{1}) > 0 &&...
nSHGrid = size(this.Y,2); nSHGrid = size(this.Y,2);
nSHData = size(varargin{1}(:),1); nSHData = size(varargin{1}(:),1);
if nSHGrid ~= nSHData if nSHGrid ~= nSHData
% error('the spherical harmonics dimensions don''t fit');
% TODO make autofit % TODO make autofit
if nSHGrid > nSHData if nSHGrid > nSHData
varargin{1} = [varargin{1}(:); zeros(nSHGrid - nSHData,1)]; varargin{1} = [varargin{1}(:); zeros(nSHGrid - nSHData,1)];
...@@ -49,7 +47,7 @@ end ...@@ -49,7 +47,7 @@ end
hFig = {surf@itaCoordinates(this, varargin{:})}; hFig = {surf@itaCoordinates(this, varargin{:})};
% set title % set title
if numel(titleString) if ~isempty(titleString)
title(titleString); title(titleString);
end 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