aboutsummaryrefslogtreecommitdiff
path: root/Matlab.wiki
diff options
context:
space:
mode:
Diffstat (limited to 'Matlab.wiki')
-rw-r--r--Matlab.wiki53
1 files changed, 53 insertions, 0 deletions
diff --git a/Matlab.wiki b/Matlab.wiki
new file mode 100644
index 0000000..47c561f
--- /dev/null
+++ b/Matlab.wiki
@@ -0,0 +1,53 @@
+= Matlab =
+
+=== Row Matrix ===
+:side:
+{{$
+\begin{matrix}
+4 & 5 & 6
+\end{matrix}
+}}$
+{{{matlab
+>> a = [4 5 6]
+>> a = [4, 5, 6] % Optional commas
+}}}
+
+=== Column Vector ===
+:side:
+
+{{$
+\begin{matrix}
+4 \\
+5 \\
+6
+\end{matrix}
+}}$
+{{{matlab
+>> a = [4; 5; 6]
+}}}
+
+=== Matrix ===
+:side:
+
+{{$
+\begin{matrix}
+1 & 2 \\
+3 & 4
+\end{matrix}
+}}$
+{{{matlab
+>> a = [1 2; 3 4]
+}}}
+
+---
+
+{{{matlab
+a.' % transpose a
+}}}
+
+{{$
+x = 3:6 \iff [3, 4, 5, 6]
+}}$
+
+A*B % Matrix multiplication
+A.*B % Element wise multiplication