digital-brain/content/zettels/matlab.md
2020-06-03 22:43:54 +02:00

3.3 KiB

+++ title = "Matlab" author = ["Thomas Dehaeze"] draft = false +++

Tags :

Resources on Matlab

Books:

Useful Commands

Command Description
desktop Open the Matlab Desktop
workspace Open the Workspace
who List all variables in the workspace
edit <filename> Edit the file using Matlab Desktop (usefully for debugging)
help <function>
doc <function>
checkcode <filename> Check Matlab code files for possible problems
preferences Open Matlab preferences

Tips

  • Folder that starts with a + are automatically added to the path. It is useful to add function inside such folder. Then the function is accessible with folder.function.

Snippets

Do not show legend for one plot

figure;
hold on;
plot(x, y1, 'DisplayName, 'lengendname');
plot(x, y2, 'HandleVisibility', 'off');
hold off;
legend('Location', 'northeast');

Bibliography

Higham, D., Matlab guide (2017), Philadelphia: Society for Industrial and Applied Mathematics.

Attaway, S., Matlab : a practical introduction to programming and problem solving (2018), Amsterdam: Butterworth-Heinemann.

OverFlow, S., Matlab notes for professionals (2018), : GoalKicker.com.

Johnson, R. K., The elements of matlab style (2010), : Cambridge University Press.

Hahn, B., & Valentine, D. T., Essential matlab for engineers and scientists (2016), : Academic Press.