Code covered by the BSD License
-
COUNT(X)
% COUNT Counts the number of different elements.
-
Y =addpaths(varargin)
% ADDPATHS Adds directory to search path (accepts cells and matrix)
-
Y=pad(varargin)
-
Y=shift(varargin)
SHIFT Shifts matrix elements.
-
cmap(varargin)
CMAP Creates colormap
-
colormapc(varargin)
COLORMAPC Circular colormap
-
colormaps(varargin)
COLORMAPS Symmetrical colormap
-
extreme(X,varargin)
EXTREME Sets/Gets matrix extremum values.
-
fft2fix(X)
FFT2FIX2 Fixes FFT2 graphic
-
gmax(X)
-
gmin(x)
-
grow(varargin)
-
imagem(varargin)
IMAGEM Displays image and marker.
-
ind2subm(SIZ,IND)
IND2SUBM Multiple subscripts from linear index.
-
invert(X)
-
iscol(X)
-
iseven(X)
-
isint(X)
-
isodd(X)
-
isrow(X)
-
limindex(X, I, F)
% LIMINDEX Extracts matrix elements by limiting indexes.
-
lind2cell(I, F)
% LIND2CELL Converts limiting indexes to cell.
-
lind2str(I, F)
% LIND2STR Converts limiting indexes to string.
-
maxfilt2(X,varargin)
MAXFILT2 Two-dimensional max filter
-
minfilt2(X,varargin)
MINFILT2 Two-dimensional min filter
-
mmax(varargin)
MMAX Multi matrix maximum.
-
mmin(varargin)
MMIN Multi matrix minimum.
-
nfft(varargin)
NFFT Discrete Fourier transform.
-
nfft2(varargin)
% NFFT2 Two-dimensional discrete Fourier Transform.
-
noise(varargin)
-
normn(X,P,DIM)
-
plotcolor(x)
PLOTCOLOR Returns plot color strings
-
plotline(x,d,varargin)
PLOTLINE Plots a vertical or horizontal line
-
posterize(varargin)
% POSTERIZE Reduces number of colors in an image.
-
quote(varargin)
-
resize(varargin)
-
rmaths(X)
% RMPATHS Remove directory to search path (accepts cells and matrix)
-
roll(varargin)
ROLL Rolls matrix elements.
-
scale(varargin)
SCALE Scales matrix elements to a new range.
-
shrink(X,E)
-
subdim(X,N,DIM)
SUBDIM Extracts matrix elements by dimension
-
subdirs(varargin)
% SUBDIRS Returns the subdirectories of a directory
-
thomas(varargin)
THOMAS Solves a tridiagonal linear system
-
toggle(varargin)
TOGGLE Matrix elements classification.
-
vanherk(X,N,TYPE,varargin)
-
contents.m
-
View all files
from
General Extra Toolbox
by Frederico D'Almeida
Generic functions for matrix manipulation, image processing, etc.
|
| quote(varargin)
|
function y = quote(varargin)
%
% QUOTE Returns a quoted string
%
% y = QOUTE(x) returns the string 'x' in between quotes.
%
% Example: QOUTE('ball') -> 'ball' (The quoutes are part of the string)
%
% This function is usefull when you must pass a parameter in quotes.
%
% y = QUOTE(x,ASC) returns the string x in between the character char(ASC).
% y = QUOTE(x,'c') returns the string x in between the character "c".
switch nargin
case 0
error('Too few parameters.')
case 1
y = strcat( char(39),varargin{1},char(39) );
case 2
if isa(varargin{2},'char')
y = [varargin{2}, varargin{1}, varargin{2}];
else
y = strcat( char(varargin{2}), varargin{1}, char(varargin{2}) );
end
otherwise
error('Too many parameters')
end
|
|
Contact us