Software Listing of Author : "Mukhtar Ullah"
- BINOMIAL (Binomial coefficient.)
- License: Shareware
- Price:


BINOMIAL Binomial coefficient. If the arguments are both non-negative integers with 0 <= K <= N, then BINOMIAL(N, K) = N!/K!/(N-K)!, which is the number of distinct sets of K objects that can be chosen from N distinct objects. When N or K(or both) are N-D matrices, BINOMIAL(N, K) is the coefficient for each pair of elements. If N and K are integers that do not satisfy 0 <= K <= N, or N and K are non-integers , then the general definition is used, that is BINOMIAL(N, K) = GAMMA(N+1) / (GAMMA(K+1) / GAMMA(N-K+1)) If N is a non-negative integer, BINOMIAL(N) = BINOMIAL(N, 0:N) BINOMIAL only supports floating point input arguments.
- Publisher: Mukhtar Ullah
- Date Released: 04-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- DARROW
- License: Shareware
- Price:


DARROW draw arrows at specified point in spefied directions DARROW(X,Y,U,V,S) for scalar arguments, draws an arrow of lengths S at point (X,Y) in the direction (U,V). When one or more input arguments are column vectors, arrows of specified lengths are drawn at each point in specifed directions H = DARROW(...) also returns the associated handle
- Publisher: Mukhtar Ullah
- Date Released: 01-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- DIRDIFF
- License: Shareware
- Price:


Xpf = dirdiff(X,f,p) generates directional derivative of symbolic scalar function f at the point p in the direction of symbolic vector X(p). p must be a cell array {p1,p2,..pn} of doubles or symbolic variables. examples syms x1 x2 x3 y1 y2 y3 X = [ 2*x3 - x1^2 ; x1^3 - x3^2 ; x2^4 ] ; f = x1^2 + x2^2 + x3^2 ; dirdiff(X,f,{2,0,3}) returns Xpf = 3.5777 dirdiff(X,f,{y1,0,0}) returns Xpf = -2*y1^3/(y1^4+y1^6)^(1/2)
- Publisher: Mukhtar Ullah
- Date Released: 16-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- DIRECTEDPLOT
- License: Shareware
- Price:


DIRECTEDPLOT Plot with directions DIRECTEDPLOT(X,Y) plots vector Y versus vector X, with arrows on alternative points. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix,whichever line up. DIRECTEDPLOT(X,Y,N) places arrows on each N-th point, starting from the first. DIRECTEDPLOT(X,Y,N,LINESPEC) uses the plot linestyle specified for the plots and the arrows. See PLOT for other possibilities. [H1,H2] = DIRECTEDPLOT(...) also returns the handles for the plot and the arrows Example: x = linspace(0,2*pi,10)'; y = [cos(x) sin(x)]; [h1,h2] = directedplot(x,y); axis equal
- Publisher: Mukhtar Ullah
- Date Released: 12-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- FINDARRAY
- License: Shareware
- Price:


FINDARRAY Find one array within another I = FINDARRAY(A,B,'first') for the array B returns an index array of the same size as B containing the smallest absolute index in A for each element of B which is a member of A and 0 if there is no such index. FINDARRAY(A,B) is the same as FINDARRAY(A,B,'first'). I = FINDARRAY(A,B,'last') for the array B returns an index array of the same size as B containing the highest absolute index in A for each element of B which is a member of A and 0 if there is no such index. I = FINDARRAY(A,B,'all') returns a NDIMS(B)+1 dimensional array such that I(:,...,k) contains the k-th absolute index in A for each element of B, 0 otherwise. See also find, ismember Example: >> findarray(pascal(3),magic(2),'all') ans(:,:,1) = 1 6 0 5 ans(:,:,2) = 2 8 0 0 ans(:,:,3) = 3 0 0 0 ans(:,:,4)...
- Publisher: Mukhtar Ullah
- Date Released: 21-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- FREQTABLE
- License: Shareware
- Price:


FREQTABLE Frequency table. [Y,N] = FREQTABLE(X) takes a vector X and returns the unique values of X in theoutput Y, and the number of instances of each value in the output N. X can be a charachter array or cell array of strings.
- Publisher: Mukhtar Ullah
- Date Released: 22-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- GINPUTPLOT
- License: Shareware
- Price:


GINPUTPLOT finds points on the 2-D plot nearest to the mouse click [XI,YI] = GINPUTPLOT(N) gets N points from the current axes and returns the nearest points on the plot of Y versus X, in length N vectors XI and YI, where X and Y are respectively 'XData' and 'YData' properties of all childern objects in the current axes. [XI,YI] = GINPUTPLOT gathers an unlimited number of points until the return key is pressed. GINPUTPLOT(H,N) and GINPUTPLOT(H) does the same as GINPUTPLOT(N) and GINPUTPLOT for objects with handles H. Example: [t,Y] = ode23(@lotka,[0 5],[20 20]'); plot(Y(:,1),Y(:,2)) [xi,yi] = ginputplot If any suggestions/improvements/entensions, please let me know.
- Publisher: Mukhtar Ullah
- Date Released: 27-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- MEMBERSHIP
- License: Freeware
- Price: 0.00


MEMBERSHIP counts membership of elements of one array in another. C = MEMBERSHIP(A,B) for the array A returns an array of the same size as A containing the number of instances of the elements of A in the array B. A and B can be character arrays or cell arrays of strings. Examples: membership(1:6,pascal(3)) returns [5 1 2 0 0 1] membership('MASK','MISSISSIPI') retruns [1 0 4 0] membership({'john','gul';'sim','ku'},{'sim','gul','kid','gul'}) returns [0 2;1 0] See also FREQTABLE, ISMEMBER
- Publisher: Mukhtar Ullah
- Date Released: 23-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- MULTINOMIAL
- License: Shareware
- Price:


MULTINOMIAL(N, K1, K2, ..., Km) where N and Ki are numeric arrays of non-negative integers satisfying N = K1 + K2 + ... + Km, returns the multinomial coefficient N!/( K1!* K2! ... *Km!). MULTINOMIAL(N, [K1 K2 ... Km]) when Ki's are all scalar, returns the same as MULTINOMIAL(N, K1, K2, ..., Km). Non-integer input arguments are pre-rounded by FLOOR function. EXAMPLES: multinomial(8, 2, 6) returns 28 binomial(8, 2) returns 28 multinomial(8, 2, 3, 3) returns 560 multinomial(8, [2, 3, 3]) returns 560 multinomial([8 10], 2, [6 8]) returns [28 45]
- Publisher: Mukhtar Ullah
- Date Released: 13-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- RM2SF Change the typeface of non-math text to sans-serif
- License: Shareware
- Price:


RM2SF changes the typeface of non-math text with latex interpreter from roman (serif) to sans-serif. This is needed because the latex interpreter typesets both math and text in roman irrespective of the font specification. Therefore RM2SF places each non-math part of the text inside textsf{}. RM2SF replaces, by textsf{STR}, each non-math part STR of all text objects in the current figure whose interpreter is set to latex. RM2SF(FIG) applies to text objects in figure with handle FIG. RM2SF(AX) applies to text objects in axes with handle AX. RM2SF(TX) applies to text objects with handles specified in vector TX. Example: tx(1) = text(0.2,0.8, 'square of $x$ is $x^2$'); tx(2) = text(0.3,0.6, {'sine of $theta$'; 'is $sin theta$'}); tx(3) = text(0.2,0.4, 'cube of $x$ is $x^3$'); tx(4) = xlabel('time $t$ here'); tx(5) =...
- Publisher: Mukhtar Ullah
- Date Released: 25-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- SETAXES
- License: Shareware
- Price:


This subsmission was inspired by the blog: http://blogs.mathworks.com/loren/2007/12/1...-pretty-graphs/ SETAXES fixes common problems with MATLAB figures. SETAXES(AX, ...) applies to the axes AX which, when not supplied, defaults to the current axes. SETAXES('xoffset') [2-D view only] adjusts the axes position in the horizontal direction to make up for any clipped (left or right) part of the axes based on some default settings. SETAXES('yoffset') [2-D view only] adjusts the axes position in the vertical direction to make up for any clipped (lower or upper) part of the axes based on some default settings. SETAXES('axesmoveresize', [L B R T]) adds the array [L B -R -T] to the 'OuterPosition' property of the axes. SETAXES('xtick2text', OFFSET) [2-D view only] replaces the tick labels on the X-Axis by text objects where OFFSET is...
- Publisher: Mukhtar Ullah
- Date Released: 15-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- SYM2POLYS
- License: Shareware
- Price:


Sym2Polys (by Paul Godfrey) cannot be run on MATLAB 7(Release 14). This function is an extension of the Matlab SYM2POLY and COEFFS functions in that it allows the coefficients to be symbolic and returns the full coefficient vector including the zero coefficients.
- Publisher: Mukhtar Ullah
- Date Released: 10-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- SYMBMAT
- License: Shareware
- Price:


SYMBMATMAKE by Richard Hindmarsh was the inspiration for this submission. I have rewritten to vectorize it. No more loops! It also illustrates how to write compact code without loops. Returns symbolic matrices with subscripts which can be manipulated using the Symbolic Toolbox. e.g. symbmat('a',2,3) returns [ a11, a12, a13] [ a21, a22, a23] e.g. symbmat('a',1,2) returns [ a1, a2]
- Publisher: Mukhtar Ullah
- Date Released: 27-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts