Skip to content

Commit

Permalink
Version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmendo committed Dec 22, 2015
1 parent a0867ac commit a0e94d9
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 19 deletions.
Binary file modified MATL_spec.pdf
Binary file not shown.
10 changes: 0 additions & 10 deletions README.md

This file was deleted.

Binary file modified funDef.mat
Binary file not shown.
18 changes: 12 additions & 6 deletions funDef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ Y9
Z9
: 1 3 1 1 1 1 true true if numel(in)==1, out{1} = colon(1,in{1}); else out{1} = colon(in{:}); end vector of equally spaced values \matlab+colon+ (with three inputs \matlab+x+, \matlab+y+, \matlab+z+ produces \matlab+x:y:z+; with two inputs \matlab+x+, \matlab+y+ produces \matlab+x:y+). If one input: produces \matlab+1:x+
X:
Y:
Y: 1 inf 2 1 inf 1 true true switch in{1} Higham test matrices and other matrices \matlab+gallery+. Also includes functions \matlab+magic+, \matlab+hilb+, \matlab+invhilb+, \matlab+hadamard+, \matlab+pascal+, \matlab+spiral+
case {'magic', 'hilb', 'invhilb', 'hadamard', 'pascal', 'spiral'}
[out{1}] = feval(in{1},in{2:end});
otherwise
[out{:}] = gallery(in{:});
end
Z: 2 3 2 1 1 1 true true out{1} = bitset(in{:}); set bit \matlab+bitset+
;
X; 1 1 1 1 1 1 true true out{1} = acos(in{1}); inverse cosine (radians) \matlab+acos+
Expand All @@ -254,9 +259,10 @@ X?
Y?
Z? 1 6 3 1 1 1 true true out{1} = sparse(in{:}); create sparse matrix \matlab+sparse+
@
X@ 1 1 1 1 1 1 true true out{1} = spiral(in{:}); matrix with spiral pattern \matlab+spiral+
X@
Y@ 1 1 1 1 1 1 true true out{1} = perms(in{:}); all possible permutations \matlab+perms+
Z@ 1 2 1 1 1 1 true true out{1} = randperm(in{:}); random permutation \matlab+randperm+
Z@ 1 3 1 1 1 1 true true if numel(in)~=3, out{1} = randperm(in{:}); random permutation \matlab+randperm+ (produces a row vector as output). With $3$ outputs: third output indicates number of permutations, each in a different row.
else [~, p] = sort(rand(in{3},in{1}),2); p = p(:,1:in{2}); out{1} = p; clear p, end
A 1 2 1 1 1 1 true true out{1} = all(in{:}); all \matlab+all+
XA
YA 2 4 2 1 1 1 true true if numel(in{2})==1, out{1} = dec2base(in{:}); convert integer to string representation in given base \matlab+dec2base+. If second input has more than one element: it defines the symbols, which can be characters or numbers. The number of symbols defines the base, which can exceed $36$
Expand Down Expand Up @@ -295,7 +301,7 @@ YB 1 2 1 1 1 1 true true out{1} = dec2bin(in{:}); convert decimal number to bina
ZB 1 1 1 1 1 1 true true out{1} = bin2dec(in{1}); convert binary string to decimal number \matlab|bin2dec|
C
XC 1 7 2 1 3 1 true true [out{:}] = histcounts(in{:}); histogram bin counts \matlab+histcounts+
YC 1 inf 2 1 1 1 true true out{1} = cell(in{:}); create cell array \matlab+cell+
YC 2 4 2 1 1 1 true true out{1} = im2col(in{:}); rearrange array blocks into columns \matlab+im2col+
ZC
D 0 inf 1 0 0 0 true true if numel(in)==1, data = in; fmt = {'%.16g '}; else data = in(1:end-1); fmt = in(end); end convert to string and display If $1$ input: \matlab+disp(num2str(..., '%.16g '))+. If several inputs: \matlab+disp(num2str(eachInput,lastInput))+, where \matlab+eachInput+ loops over all inputs but the last. In either case, (nested) cell arrays are (recursively) unboxed in linear order. \sa \matl+XD+, \matl+YD+, \matl+ZD+
kk = cellfun(@iscell, data);
Expand Down Expand Up @@ -375,7 +381,7 @@ ZR 1 1 1 1 1 1 true true out{1} = tril(in{1},-1); lower triangular part, without
S 1 3 1 1 2 1 true true if numel(in)==2 && in{2}<0, in{2}=-in{2}; in{3} = 'descend'; end, [out{:}] = sort(in{:}); sort \matlab+sort+. If $2$ inputs: a negative value of the second input corresponds to descending order
XS 1 2 1 1 2 1 true true [out{:}] = sortrows(in{:}); sort rows \matlab+sortrows+
YS 2 3 2 1 1 1 true true out{1} = circshift(in{:}); circular shift \matlab+circshift+
ZS 1 4 1 1 1 1 true true out{1} = std(in{:}); standard deviation \matlab+std+
ZS 1 1 1 1 1 1 true true out{1} = sign(in{:}); sign function \matlab+sign+
T
XT
YT 1 2 2 1 1 1 true true out{1} = toeplitz(in{:}); Toeplitz matrix \matlab+toeplitz+
Expand Down Expand Up @@ -519,7 +525,7 @@ Zr 2 4 2 1 1 1 true true out{1} = randsample(in{:}); random sample \matlab+rands
s 1 4 1 1 1 1 true true out{1} = sum(in{:}); sum \matlab+sum+. \sa \matl+Xs+
Xs 1 3 1 1 1 1 true true out{1} = sum(in{1},1,in{2:end}); sum along first dimension \matlab+sum(..., 1, ...)+. \sa \matl+s+
Ys 1 3 1 1 1 1 true true out{1} = cumsum(in{:}); cumulative sum \matlab+cumsum+
Zs
Zs 1 4 1 1 1 1 true true out{1} = std(in{:}); standard deviation \matlab+std+
t 0 inf 1 0 0 0 false true out = in; duplicate duplicate elements in stack
Xt
Yt
Expand Down
Binary file modified help.mat
Binary file not shown.
Binary file modified preLit.mat
Binary file not shown.
79 changes: 76 additions & 3 deletions preLit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ X5
12 'cubic'
13 'v5cubic'
14 'extrap'
20 'distinct'
21 'sliding'
22 'indexed'


X6
Expand All @@ -105,9 +108,8 @@ X6
17 'V79Compatible'




X7

1 'BinWidth'
2 'BinLimits'
3 'Normalization'
Expand Down Expand Up @@ -237,4 +239,75 @@ Y2
12 'AEIOU'
13 'aeiouAEIOU'
20 ['Mon';'Tue';'Wed'; 'Thu';'Fri';'Sat'; 'Sun']
21 [298 302 288 305 289 296 310]
21 [298 302 288 305 289 296 310]


Y3

1 'magic'
2 'hilb'
3 'invhilb'
4 'hadamard'
5 'pascal'
6 'spiral'
10 'binomial'
11 'cauchy'
12 'chebspec'
13 'chebvand'
14 'chow'
15 'circul'
16 'clement'
17 'compar'
18 'condex'
19 'cycol'
20 'dorr'
21 'dramadah'
22 'fiedler'
23 'forsythe'
24 'frank'
25 'gcdmat'
26 'gearmat'
27 'grcar'
28 'hanowa'
29 'house'
30 'integerdata'
31 'invhess'
32 'invol'
33 'ipjfact'
34 'jordbloc'
35 'kahan'
36 'kms'
37 'krylov'
38 'lauchli'
39 'lehmer'
40 'leslie'
41 'lesp'
42 'lotkin'
43 'minij'
44 'moler'
45 'neumann'
46 'normaldata'
47 'orthog'
48 'parter'
49 'pei'
50 'poisson'
51 'prolate'
52 'qmult'
53 'randcolu'
54 'randcorr'
55 'randhess'
56 'randjorth'
57 'rando'
58 'randsvd'
59 'redheff'
60 'riemann'
61 'ris'
62 'sampling'
63 'smoke'
64 'toeppd'
65 'toeppen'
66 'tridiag'
67 'triw'
68 'uniformdata'
69 'wathen'
70 'wilk'

0 comments on commit a0e94d9

Please sign in to comment.