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
fe556c36
Commit
fe556c36
authored
Oct 15, 2016
by
Jan-Gerrit Richter
Browse files
added magnitude option
parent
f0c65696
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/ClassStuff/@itaCoordinates/surf.m
View file @
fe556c36
...
...
@@ -41,7 +41,7 @@ function varargout = surf(this, varargin)
narginchk
(
1
,
inf
);
defaultProperties
=
{
'EdgeAlpha'
,
0
,
'FaceColor'
,
'interp'
};
sArgs
=
struct
(
'pos1_data'
,
'double'
,
'radius'
,
[],
defaultProperties
{:},
'parent'
,[]);
sArgs
=
struct
(
'pos1_data'
,
'double'
,
'radius'
,
[],
'magnitude'
,
0
,
defaultProperties
{:},
'parent'
,[]);
if
~
isempty
(
varargin
)
[
data
,
sArgs
]
=
ita_parse_arguments
(
sArgs
,
varargin
);
end
...
...
@@ -49,6 +49,10 @@ end
numArgIn
=
nargin
;
if
sArgs
.
magnitude
data
=
abs
(
data
);
end
%% now set r and color according to the input variables
% there is three options for the colorbar settings:
...
...
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