9/11/2023 0 Comments We we should learn matlab![]() Self-Paced Online MATLAB Fundamentals course (you have to pay for this one) They have other courses as well which are available in-person or over the web with a live instructor. Here are some resources straight from MathWorks: ![]() Google and the 'help' and 'lookfor' commands are your best friends when learning matlab. I think the best way to get into it is to get the basics down (i.e., understand the syntax and different data types/structures), and to have a problem to work on. I picked it up pretty quickly after figuring out how variables worked (and how they were different from the way the word 'variable' was used in my math classes) and gained an understanding of the syntax. I sat down with the getting started guide, googled a lot of stuff, and just dove in. I had very little background in programming at the time. I had never heard of Matlab before and went to my undergrad advisor and said something like "I heard this program 'Matlab' can analyse data". Matlab was suggested to me by someone on the internet as a way that I could do some "rudimentary" analysis of eye movement data ("rudimentary" was the word the person used). ![]() Y = sin(x) % get the corresponding y values for each of the 60 x values ![]() then ' transposes them to a column vector. X = linspace(0,2*pi,60)' % generate 60 linearly spaced values between 0 and 2pi. For example to plot a simple sine wave y=sin(x): Anything you work out and plot will (by the nature of the topic) will just be a series of calculated values most likely a matrix of data points. For numerical methods you'll probably be using symbolic maths but you can cover that later when you have a handle on the basics. Once you have a few simple functions under your belt you'll realise that it is not as hard as you first thought. It is also very well documented typing 'help' followed by the function name will give information on how to use it including examples. Matlab is a huge program, with thousands of functions and you will likely only use a tiny fraction of them.īut like I said Matlab is very forgiving if you do something wrong it will through up lots of red text and tell you what is wrong. There will be a number of books on matlab for maths/engineering/chemistry/statistics in any academic library, but they're probably a waste of time (unless you find it easy to learn by reading). Like I said before the best (or at least the way I found easiest) is to learn by doing. So start by looking through a few of them to get the grips of the very basics, assigning variables doing maths plotting results. Most universities will have a page like this one outlining the matlab basics for taking their course. There's no compiling or worrying about loading libraries, its more a press enter (or run) and get the results.Ī quick google for 'matlab basics' gave me this: I have entirely taught myself Matlab and it seems daunting at first but if you don't know how to do a task, just google it there are so many stack overflow / forum posts on pretty much every topic.Īs mostlywaiting points out MATLAB isn't good for teaching good coding practices, however, that being said it is probably what makes it much more accessible than many other languages out there. ![]() Once you have a basic grasp of the matlab syntax then learning to use specific tool should be easy. So pick a problem you want to solve, for example make a blackjack simulator, whereby two hands are dealt in a standard blackjack fashion and see who wins. So as long as you understand standard matrix operations you should be fine. The only difference in Matlab to something like C or Fortran is everything is pretty much done in Matrix form (hence the name MATrix LABoratory). That is if you understand if, while for statements. How are you at coding in general? If you have the basic knowledge of coding logic you should be fine. Learning from example problems gets boring pretty fast and you don't really use your initiative. You can teach yourself any language through crash courses and books, but I find the best method is to have a problem you want to solve and find the way to do it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |