Learning Matlab from the beginning
1 view (last 30 days)
Show older comments
Hello! .. I recently have started with Matlab, and I´m kind of stuck when it comes to how I approach tasks. And when it comes to searching for answers, it is hard to know exactly where to look. x) .. For example. I have two different matrix, 365 days is one and consumption is the other. I´m supose to plot a figure with all days on the x-axis, and the associated consumption on the Y-axis, just to see how it varies. But as I said. It is extremly frustrating when you don´t know how to start. Any advice?
3 Comments
Stephen23
on 26 Feb 2018
Edited: Stephen23
on 26 Feb 2018
Do the introductory tutorials:
The MATLAB documentation explains different plotting functions, has working examples, so you could start by reading about different plotting functions. Do not make the beginner's mistake of jumping directly in to writing code: first learn about the tools you have available, understand any algorithms you want to implement, do some examples on paper,...
The MATLAB documentation is easy to navigate (the table of contents on the LHS consists clickable links), so why not start there?
Adam
on 26 Feb 2018
In this case it should be quite simple. Languages like Matlab generally use user-friendly words as their function names (some are obscure, but that will always be the case - that is when you ask others for advice).
In your case you say 'I'm supposed to plot a figure...' so you should easily understand from that to search for a function called 'plot'
doc plot
will lead you straight to your Matlab help, which is by far the best source of learning.
docsearch plot
is another alternative, especially if your search term is less likely to translate directly to a function name.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!