# Matlab on Docker ###### tags: `vehicle_dynamics` `electrical_system` `NTURT` ## Copy and paste [Keyboard shortcuts](https://www.mathworks.com/matlabcentral/answers/321284-copy-and-paste-not-working-after-update) ## Parsing yaml in matlab Install: [yaml](https://www.mathworks.com/matlabcentral/fileexchange/106765-yaml?s_tid=FX_rc3_behav) load config file by ```cpp= config = yaml.loadFile("config.yaml").config ``` ## Generating C code form simulink [tutorial](https://www.mathworks.com/help/rtw/gs/generate-code-by-using-simulink-coder-quick-start.html) ## Install new matlab products Using mpm: [mpm](https://github.com/mathworks-ref-arch/matlab-dockerfile) ```bash= wget https://www.mathworks.com/mpm/glnxa64/mpm \ && chmod +x mpm \ && sudo ./mpm install --release=R2021a --doc \ --products NEW_PRODUCT \ && rm -f mpm /tmp/mathworks_root.log ``` ### Using simscape driveline or vehicle dynamics blockset [What are the differences between Simscape Driveline and Simulink Powertrain Blockset?](https://www.mathworks.com/matlabcentral/answers/485158-what-are-the-differences-between-simscape-driveline-and-simulink-powertrain-blockset) for now, we will stick to simpler `vehicle dynamics blockset`.