From 5646023a24358b7b994dc101bb5461227a3e3fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 26 Mar 2019 08:40:20 +0100 Subject: Tue, 26 Mar 2019 08:40:20 +0100 --- Matlab.wiki | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Matlab.wiki (limited to 'Matlab.wiki') 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 -- cgit v1.2.3