Update Coding guidelines authored by Jakob Gabriel's avatar Jakob Gabriel
......@@ -49,7 +49,7 @@
- Structure your code with **`%% This is a helpful title`** sections.
- All comments, error messages, warnings, fprintf-prints in English only.
- Remove the *Tab key inserts spaces* setting in *Home ↦ Preferences ↦ MATLAB ↦ Editor/Debugger ↦ Tab*.
- Don't usue tabs in documentations. Tabs are displayed incorrectly in the documentation.
- Don't use tabs in documentations. Tabs are displayed incorrectly in the documentation.
- If you use functions with a lot of input arguments, arrange your code clearly over multiple lines with tab. Use `...` notation for linebreaks. As orientation you should use the vertical line in the matlab editor.
- Use structs to structure related variables in your workspace, for instance
<pre><code>time = struct('start', 0, 'end', 7, 'stepSize', 1e-3, 'vector', 0:1e-3:7);</code></pre> or <pre><code>option = struct('save', false, 'plot', true', 'simulate', true);</code></pre>
......
......