literate-dotfiles/docs/matlab.html
2020-05-26 08:40:15 +02:00

261 lines
8.3 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-05-26 mar. 08:40 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Matlab Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
<link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
<script type="text/javascript" src="./js/readtheorg.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Matlab Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org157998a">Startup</a>
<ul>
<li><a href="#orgf6d1f33">Setup LaTeX as a default interpreter</a></li>
<li><a href="#org4d6a4e5">Default Line Width</a></li>
<li><a href="#org14081cd">Default grids on all axis</a></li>
<li><a href="#org3406bd4">Default Font Size</a></li>
<li><a href="#org6451de0">Default Fonts</a></li>
<li><a href="#orgad9e350">Make figures into a Box</a></li>
<li><a href="#org9a40d31">Default Colors</a></li>
<li><a href="#org64d60de">Default Plot Colors</a></li>
<li><a href="#org27ce6db">Figure paper and window style</a></li>
<li><a href="#orgd711b41">Set the display format</a></li>
<li><a href="#orga60f640">Home Path</a></li>
<li><a href="#org83d6337">Add to path</a></li>
<li><a href="#orgbc34538">Clear</a></li>
</ul>
</li>
<li><a href="#org20ac1e5">Setup</a>
<ul>
<li><a href="#org2f8f36d">Schemer Import</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org157998a" class="outline-2">
<h2 id="org157998a">Startup</h2>
<div class="outline-text-2" id="text-org157998a">
</div>
<div id="outline-container-orgf6d1f33" class="outline-3">
<h3 id="orgf6d1f33">Setup LaTeX as a default interpreter</h3>
<div class="outline-text-3" id="text-orgf6d1f33">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultTextInterpreter', 'LaTeX');
set(groot, 'DefaultAxesTickLabelInterpreter', 'LaTeX');
set(groot, 'DefaultAxesFontName', 'LaTeX');
set(groot, 'DefaultLegendInterpreter', 'LaTeX');
</pre>
</div>
</div>
</div>
<div id="outline-container-org4d6a4e5" class="outline-3">
<h3 id="org4d6a4e5">Default Line Width</h3>
<div class="outline-text-3" id="text-org4d6a4e5">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultLineLineWidth', 1.5);
set(groot, 'DefaultAxesLineWidth', 0.5);
</pre>
</div>
</div>
</div>
<div id="outline-container-org14081cd" class="outline-3">
<h3 id="org14081cd">Default grids on all axis</h3>
<div class="outline-text-3" id="text-org14081cd">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultAxesXGrid','on');
set(groot, 'DefaultAxesYGrid','on');
set(groot, 'DefaultAxesZGrid','on');
</pre>
</div>
</div>
</div>
<div id="outline-container-org3406bd4" class="outline-3">
<h3 id="org3406bd4">Default Font Size</h3>
<div class="outline-text-3" id="text-org3406bd4">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultTextFontUnits', 'points');
set(groot, 'DefaultTextFontSize', 10);
set(groot, 'DefaultAxesFontUnits', 'points');
set(groot, 'DefaultAxesFontSize', 10);
set(groot, 'DefaultUicontrolFontSize', 10);
</pre>
</div>
</div>
</div>
<div id="outline-container-org6451de0" class="outline-3">
<h3 id="org6451de0">Default Fonts</h3>
<div class="outline-text-3" id="text-org6451de0">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultAxesFontName', 'Helvetica');
set(groot, 'DefaultTextFontName', 'Helvetica');
</pre>
</div>
</div>
</div>
<div id="outline-container-orgad9e350" class="outline-3">
<h3 id="orgad9e350">Make figures into a Box</h3>
<div class="outline-text-3" id="text-orgad9e350">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultAxesBox', 'on');
</pre>
</div>
</div>
</div>
<div id="outline-container-org9a40d31" class="outline-3">
<h3 id="org9a40d31">Default Colors</h3>
<div class="outline-text-3" id="text-org9a40d31">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultAxesColor', 'w');
set(groot, 'DefaultAxesXColor', 'k');
set(groot, 'DefaultAxesYColor', 'k');
set(groot, 'DefaultFigureColor', 'w');
</pre>
</div>
</div>
</div>
<div id="outline-container-org64d60de" class="outline-3">
<h3 id="org64d60de">Default Plot Colors</h3>
<div class="outline-text-3" id="text-org64d60de">
<div class="org-src-container">
<pre class="src src-matlab">c1 = [ 0 0.4470 0.7410]; % Blue
c2 = [0.8500 0.3250 0.0980]; % Orange
c3 = [0.9290 0.6940 0.1250]; % Yellow
c4 = [0.4940 0.1840 0.5560]; % Purple
c5 = [0.4660 0.6740 0.1880]; % Green
c6 = [0.3010 0.7450 0.9330]; % Light Blue
c7 = [0.6350 0.0780 0.1840]; % Red
set(groot, 'defaultAxesColorOrder', [c1; c2; c3; c4; c5; c6; c7])
</pre>
</div>
</div>
</div>
<div id="outline-container-org27ce6db" class="outline-3">
<h3 id="org27ce6db">Figure paper and window style</h3>
<div class="outline-text-3" id="text-org27ce6db">
<div class="org-src-container">
<pre class="src src-matlab">set(groot, 'DefaultFigurePaperType', 'A4');
set(groot, 'DefaultFigureWindowStyle', 'normal');
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd711b41" class="outline-3">
<h3 id="orgd711b41">Set the display format</h3>
<div class="outline-text-3" id="text-orgd711b41">
<div class="org-src-container">
<pre class="src src-matlab">format compact;
format long g;
</pre>
</div>
</div>
</div>
<div id="outline-container-orga60f640" class="outline-3">
<h3 id="orga60f640">Home Path</h3>
<div class="outline-text-3" id="text-orga60f640">
<div class="org-src-container">
<pre class="src src-matlab">toolboxes_path = '~/Cloud/thesis/matlab/toolboxes/';
</pre>
</div>
</div>
</div>
<div id="outline-container-org83d6337" class="outline-3">
<h3 id="org83d6337">Add to path</h3>
<div class="outline-text-3" id="text-org83d6337">
<div class="org-src-container">
<pre class="src src-matlab">addpath([toolboxes_path 'Org-Mode-Toolbox/src'])
addpath([toolboxes_path 'Usefull-Functions/src'])
addpath([toolboxes_path 'Stacked-Elements-Toolbox/src'])
addpath([toolboxes_path 'Measure-Analysis-Toolbox/src'])
addpath([toolboxes_path 'Hinf-Toolbox/src'])
addpath([toolboxes_path 'Fit-Model-Toolbox/src'])
addpath([toolboxes_path 'Dspace-Toolbox/src'])
addpath([toolboxes_path 'SpeedGoat-Toolbox/src'])
addpath([toolboxes_path 'Add-Ons/matrix_fitting_toolbox_1'])
addpath([toolboxes_path 'Add-Ons/matlab-schemer'])
addpath([toolboxes_path 'Add-Ons/matlab2tikz/src'])
addpath([toolboxes_path 'Add-Ons/hline_vline'])
addpath([toolboxes_path 'Add-Ons/export_fig'])
addpath([toolboxes_path 'Add-Ons/subaxis'])
addpath([toolboxes_path 'Add-Ons/cbrewer'])
addpath([toolboxes_path 'Add-Ons/tightfig'])
addpath([toolboxes_path 'Add-Ons/fig2svg/src'])
addpath([toolboxes_path 'Add-Ons/CVX'])
addpath([toolboxes_path 'Add-Ons/MBeautifier'])
</pre>
</div>
<div class="org-src-container">
<pre class="src src-matlab">addpath('/home/thomas/.emacs.d/.local/straight/repos/mirror/toolbox')
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbc34538" class="outline-3">
<h3 id="orgbc34538">Clear</h3>
<div class="outline-text-3" id="text-orgbc34538">
<div class="org-src-container">
<pre class="src src-matlab">clear;
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org20ac1e5" class="outline-2">
<h2 id="org20ac1e5">Setup</h2>
<div class="outline-text-2" id="text-org20ac1e5">
</div>
<div id="outline-container-org2f8f36d" class="outline-3">
<h3 id="org2f8f36d">Schemer Import</h3>
<div class="outline-text-3" id="text-org2f8f36d">
<div class="org-src-container">
<pre class="src src-matlab">schemer_import([home_path '/Cloud/thesis/matlab/toolboxes/Add-Ons/matlab-schemer/schemes/monokai.prf']);
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-05-26 mar. 08:40</p>
</div>
</body>
</html>