Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fft (FFT), fftn (n-dimensional FFT), fftshift
Including Octave compatibility for fftn whtn the second input contains zeros
- Loading branch information
Showing
11 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function y = fftn(varargin) | ||
% For two inputs, if second input has a zero it gives an empty result with the | ||
% size specified by the second input, like Matlab does, instead of giving | ||
% an error | ||
if nargin==2 && any(varargin{2}==0) | ||
y = ones(varargin{2}); | ||
else | ||
y = builtin('fftn', varargin{:}); | ||
end | ||
end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.