 # Dragon Notes UNDER CONSTRUCTION
Latest content:
 Apr 05 Deep Learning Mar 19 Anomaly Detection - ML Mar 13 +Data Tables Mar 08 Clustering - Machine Learning Feb 28 Support Vector Machines - ML Feb 20 Regression - Data Science

# MATLAB:Commands

Reference matrices

$$\ds A = \mtxx{0.86}{1.52}{1.60}{3.63}$$$$\quad B = \lrbra{\mtxxx{3.00}{4.72}{0.00}{6.11}{9.07}{2.87}{2.54}{5.30}{4.45}}$$ $$\quad v=\lrbra{\nmtttx{0.50}{6.67}{3.63}{4.72}}$$

Data structures

>> x = linspace(0, 1, 5)
x =
0    0.250    0.500    0.750    1.000

>> find(A<2)
ans =
1
2
3

% (first, last, #_of_elems)
% defines row vector with equally-spaced elements
% between first & last, per #_of_elems

% returns indices of elements satisfying a Boolean predicate


RNG
(random number generators)

>> x = rand(2)
x =
0.8147    0.1270
0.9058    0.9134

>> x = rand(2, 3)
x =
0.6324    0.2785    0.9575
0.0975    0.5469    0.9649

% generates a 2x2 matrix w/ entries
% from a uniform PDF between 0 and 1

% generates a 2x3 matrix w/ entries
% as above

m-files

>> save stuff x


% saves variable x to an m-file stuff.mat

% loads variables from m-file stuff.mat

Miscellaneous

>> doc randi
>> cd 'C:\Users\user\folder'
>> pwd
>> ls
>> clc
>> [Shift]+[Right Click]

% opens documentation for randi function
% sets working directory path (absolute) / cd = current directory
% displays current working directory path / pwd = print working directory
% lists files in current working directory / ls = list
% clears command window
% adds directory accessible outside of working directory
% displays 'Copy as path' option, copying folder absolute path


Dragon Notes,   Est. 2018     About