[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
freqspace
(/tools/hpmatlab/toolbox/signal/freqspace.m)
Function Synopsis
[f1,f2] = freqspace(n,flag)
Help text
FREQSPACE Frequency spacing for 2-D frequency responses.
FREQSPACE returns the implied frequency range for equally spaced
frequency responses. FREQSPACE is useful when creating desired
frequency responses for FSAMP2, FWIND1, and FWIND2 as well as
for various 1-D applications.
[F1,F2] = FREQSPACE(N) returns the 2-D frequency range vectors
F1 and F2 for an N-by-N matrix.
[F1,F2] = FREQSPACE([M N]) returns the 2-D frequency range
vectors for an M-by-N matrix.
For 2-D vectors and n odd, F = (-1+1/n:2/n:1-1/n).
For 2-D vectors and n even, F = (-1 :2/n:1-2/n).
[F1,F2] = FREQSPACE(...,'meshgrid') is equivalent to
[F1,F2] = freqspace(...); [F1,F2] = meshgrid(F1,F2);
F = FREQSPACE(N) returns the 1-D frequency vector F assuming N
equally spaced points around the unit circle. For 1-D vectors,
F = (0:2/N:1). F = FREQSPACE(N,'whole') returns all N equally
spaced points. In this case, F = (0:2/N:2*(N-1)/N).
See also FSAMP2, FWIND1, FWIND2.
Cross-Reference Information
This function calls
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- floor /tools/hpmatlab/toolbox/matlab/elfun/floor.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- meshgrid /tools/hpmatlab/toolbox/matlab/elmat/meshgrid.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- nargout /tools/hpmatlab/toolbox/matlab/elmat/nargout.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON