Matlab from entry to master (1)-learning book list and process

Matlab is a scripting programming language, which is widely used in various scientific research fields due to its simple operation and complete function library.
Today I will tell you about the books and processes that you can refer to from a Matlab novice to a proficient use of Matlab.
 
Before the commencement of the specific content, first of all we hope to establish a concept relatively complete a functional knowledge of Matlab programming tool , similar to a screwdriver kit can be used to repair the computer, television repair, repair of home appliances and so on, but learn to use the tools learned not equal Repairing computers, repairing TVs, repairing home appliances, deep understanding of algorithm ideas and operating procedures is the key to proficiently using Matlab for scientific research. If you can’t do this, it means that you are not a novice on Matlab but on algorithms and your research. White.
 
Let’s start now.

One, learn the grammar of Matlab

(This is a bunch of introduced nonsense, don’t read it) Matlab is a programming platform developed by Mathworks. Compared with the general IDE, it has more complete functions such as running and debugging, and it also provides a lot of prepared functions in advance. , The programming language used is M language, which is a scripting language, and its main feature is that it can run without compiling. For students who learn this language for the first time, it can be simply understood that this language is similar to C language A language, but each program can be executed separately from the main program.
 
The first step in learning Matlab is to learn the grammar of Matlab’s m language, which is similar to the C language. You can read the following for specific learning.

 (The above textbooks are below 40 yuan randomly found by Taobao. The current textbooks are really too expensive to afford.)

 
Choose according to your knowledge of Matlab
  • Matlab software has never been touched. You can start learning from the textbook, but try to choose the Matlab version on the textbook to install (the interface gap between different versions is huge). Through the first few chapters of the textbook, you can basically understand the interface, operation process, characteristics, and basic M language grammar of Matlab.
  • I have heard of Matlab and know the general idea. You can learn through various online textbooks ( if I have spare capacity, I will also consider making a set by myself, if someone pays attention to me ).
 
Read through the books and materials on the line, you do not need to recite, encountered a problem and then preview .
Through the above study, you can start to use Matlab as a calculator. Then don't worry about learning other things, first use this calculator and try the following questions.
  • Calculate how much it is to multiply from 1 to 100 (answer: 9.332621544394410x10^157)
  • Calculate how many prime numbers from 1 to 100000 are prime numbers. Please define prime numbers only based on prime numbers. Prime numbers can only be divisible by 1 and yourself. (Answer: 9592)
 
The above questions mainly judge whether you have learned the loop structure, judge the structure, and understand the existence of variables.
After completing the above questions, you will find that Matlab is very useful as a calculator, and you can retain every step of your calculation. And Matlab's computing power and calculation methods can do a lot of things that could not be done on a calculator before, quickly play with the arithmetic that you have played on the calculator before.
 

Two, learn the commonly used functions of Matlab

The reason why everyone admires Matlab is that Matlab provides a large number of functions for calculations and functions in professional fields, which can save a lot of effort when developing.
It is recommended that you first learn the functions used for calculation, which is the main way to perform calculations with Matlab. Mainly include the following categories
  • Statistical functions. For example, sum, min, max, mean, etc.
  • Matrix operation function. For example, det, inv, eig, svd, sum matrix usage, mean matrix usage, and so on.
  • Drawing function. For example, plot, stairs, mesh, etc.
  • Output function. For example, fprintf, disp, fopen, fwrite, etc.
  • Random function. Such as rand, randn, etc.
  • Custom function, learn to write a simple function yourself.
If you have no ideas for learning, you can refer to the following
 
(The above textbooks can be found on Taobao, the manual is so expensive and useless, don’t buy it if you are not a local tyrant)
Do you think you learn to type the example inside first (don’t copy it, type it yourself) and see if there is an error (it is likely that you typed it wrong) and the result is the same.
 
Through the above study, you can start to use Matlab as an advanced calculator. Next, don't worry about learning other things. Use this calculator and try the following questions.
  • Use the random generating function to generate a large number of numbers, and draw these numbers into a curve.
  • Use matlab to find out the homework of your previous generation and check if it is the same. (No more doing matrix inverse drawing by hand)
  • Other applications you can think of
After completing the above steps, congratulations, you have basically learned the use of Matlab.
If you still feel unable to start, it means that you have not yet deeply understood the inner logic of what you want to achieve, and you need to work in a different direction. 
 

Three, the Matlab function library in the learning professional field

As mentioned earlier, the reason why everyone admires Matlab is that Matlab provides a large number of functions for calculation and professional fields, which can save a lot of effort when developing. Therefore, when carrying out specific development, everyone is definitely inclined to use the existing things. Why do you need Matlab for all the derivation and redo? Just find a scripting language to be different.
 
The learning here can choose the corresponding Maltab textbook according to the professional field, for example
(These books are very expensive, and most of their examples have relatively large restrictions, and have a certain reference value. If the library can borrow it, you can still take a look).
If English and basic professional knowledge are acceptable, I still recommend to read the help file of Matlab as much as possible. The introductions are very detailed.

 

4. What to do if the written program reports an error

After completing the first few steps step by step, most people found out that my program reported errors when writing their own programs. Most of this situation was because the knowledge base was not solid when learning the first book (actually, read the book Generally it’s not solid), the suggestion here is
  • Copy the error to Baidu and check it. There are many great gods who provide answers.
  • Read the error prompt and modify the code according to the prompt.
  • Learn the correct procedures of others and compare the differences.
  • It's really hard to do it in another way, or take the initiative to ask the gods for help.
If there are too many pits, the road will be smooth. (Why there are so many pits, because most of self-study is like this)
 

To sum up, the overall learning of matlab is relatively simple. The difficulty is the implementation details and ideas in various algorithms. Learning the use of Matlab is only the first step to start using Matlab.
 
 

Guess you like

Origin blog.csdn.net/Xiaoxll12/article/details/105001258