Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
8e82dc51
Commit
8e82dc51
authored
Oct 26, 2016
by
Marco Berzborn
Browse files
bugfix for nonexisting titles in surf for itaSamplingSph
parent
c0ab4c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/SphericalHarmonics/@itaSamplingSph/surf.m
View file @
8e82dc51
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment