aboutsummaryrefslogtreecommitdiff
path: root/Matlab.wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-26 08:40:20 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-26 08:40:20 +0100
commit5646023a24358b7b994dc101bb5461227a3e3fbb (patch)
tree943e926a266d5913ed2261b60fa03a262adadb12 /Matlab.wiki
parentWed, 20 Mar 2019 12:29:28 +0100 (diff)
downloadwiki-public-5646023a24358b7b994dc101bb5461227a3e3fbb.tar.gz
wiki-public-5646023a24358b7b994dc101bb5461227a3e3fbb.tar.xz
Tue, 26 Mar 2019 08:40:20 +0100
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