time | calls | line |
---|
| | 1 | function args = getRealData(args)
|
| | 2 | % This function is undocumented and may change in a future release.
|
| | 3 |
|
| | 4 | % Copyright 2013 The MathWorks, Inc.
|
| | 5 |
|
| | 6 | % getRealData returns the real components of ARGS. If ARGS contains any
|
| | 7 | % complex data, a warning is displayed.
|
| | 8 |
|
0.01 | 37 | 9 | narginchk(1, inf);
|
| | 10 |
|
| 37 | 11 | nargs = length(args);
|
| | 12 |
|
| 37 | 13 | if ~all(cellfun(@isreal, args))
|
| | 14 | warning(message('MATLAB:specgraph:private:specgraph:UsingOnlyRealComponentOfComplexData'));
|
| | 15 | for i = 1:nargs
|
| | 16 | if isnumeric(args{i})
|
| | 17 | args{i} = real(args{i});
|
| | 18 | end
|
| | 19 | end
|
| | 20 | end
|