= Matlab =
=== Row Matrix ===
{{$
\left[
\begin{matrix}
4 & 5 & 6
\end{matrix}
\right]
}}$
{{{matlab
>> a = [4 5 6]
>> a = [4, 5, 6] % Optional commas
}}}
=== Column Vector ===
{{$
\left[
\begin{matrix}
4 \\
5 \\
6
\end{matrix}
\right]
}}$
{{{matlab
>> a = [4; 5; 6]
}}}
=== Matrix ===
{{$
\left[
\begin{matrix}
1 & 2 \\
3 & 4
\end{matrix}
\right]
}}$
{{{matlab
>> a = [1 2; 3 4]
}}}
{{$
\left[\begin{matrix}
1 & 2 & 3
\end{matrix}\right] .' =
\left[\begin{matrix}
1 \\ 2 \\ 3
\end{matrix}\right]
}}$
{{{matlab
a.' % transpose a
}}}
{{$
x = 3:6 \iff [3, 4, 5, 6]
}}$
{{{matlab
A * B % Matrix multiplication
A .* B % Element wise multiplication
}}}
== File Extension ==
`filename.m` should contain the function `filename`.
{{{matlab
figure;
plot(x, y);
xlabel('x');
...
}}}