|
所在平台: Coursera |
课程主页: https://www.coursera.org/learn/matlab
课程评论:没有评论
课程名称:MATLAB编程入门 课程概述: 本课程旨在为那些几乎没有编程经验的学习者教授计算机编程知识。选择MATLAB作为授课语言,因为其易学性、通用性以及在工程和其他专业领域的实用性。MATLAB是一种特定目的的编程语言,非常适合编写中等规模的程序,以解决涉及数字操作的问题。MATLAB的设计使得用户可以用简短的代码编写出功能强大的程序,尽管所解决的问题可能相对复杂。相较于使用通用编程语言(如C++或Java)编写的等效程序,MATLAB程序通常更为简单。因此,MATLAB在自然科学、各工程学科、金融等多个领域被广泛应用,并深受工业界的青睐。因此,掌握MATLAB技能在当今的就业市场中显得尤为重要。 然而,本课程并不是MATLAB的教程,而是一门入门级编程课程,通过MATLAB来说明计算机科学和编程中的一般概念。成功完成本课程的学生将对计算机科学的基本概念有所了解,掌握编程的一般概念,并在MATLAB的使用上打下坚实的基础。 学生在课程期间可以免费获得MATLAB在线许可证,并被鼓励参考以本课程为基础的电子书,具体资源信息可在右侧的资源菜单中找到。 课程大纲: 1. MATLAB环境:学习如何启动MATLAB,熟悉用户界面,作为高级计算器的使用,了解语法和语义,使用MATLAB的帮助功能,创建图形。 2. 矩阵与运算符:掌握矩阵的定义、提取和组合,学习运算符的使用以及不同乘法与除法的类型,了解MATLAB运算符的优先级。 3. 函数:了解如何将复杂问题分解为可管理的部分,创建可重用软件组件,定义函数的输入输出接口。 4. 编程工具箱:探索MATLAB中的内置函数,学习多态性如何影响函数行为,使用随机数生成器和调试工具。 5. 选择结构:学习使用if语句进行决策,使用关系运算符和逻辑运算符,编写多态函数和避免错误的方法。 6. 循环:掌握MATLAB的for循环和while循环,学习如何优化循环,以及逻辑索引的使用方法。 7. 数据类型:学习MATLAB中各种数据类型的组织,掌握数值与字符串的处理,创建异构数据集合。 8. 文件输入/输出:学会使用MATLAB的方法读取和写入文件,包括MAT文件、Excel文件、文本文件和二进制文件。 通过本课程的学习,学生将全面深入地掌握MATLAB编程基础,为今后的学习与实用打下良好基础。
Name:Course Pages
Description:
Name:The MATLAB Environment
Description:We will learn how to start MATLAB and will familiarize ourselves with its user interface. We will learn how to use MATLAB as a sophisticated calculator. We will learn about syntax and semantics. We will see ways in which MATLAB provides help. Finally, we will learn how to create plots in MATLAB.
Name:Matrices and Operators
Description:The basic unit with which we work in MATLAB is the matrix. We solve problems by manipulating matrices, and operators are the primary means by which we manipulate them. We will learn how to define matrices, extract parts of them and combine them to form new matrices. We will learn how to use operators to add, subtract, multiply, and divide matrices, and we will learn that there are several different types of multiplication and division. Finally, we will learn MATLAB’s rules for determining the order in which operators are carried out when more than one of them appear in the same expression.
Name:Functions
Description:Functions let us break up complex problems into smaller, more manageable parts. We will learn how functions let us create reusable software components that can be applied in many different programs. We will learn how the environment inside a function is separated from the outside via a well defined interface through which it communicates with that outside world. We will learn how to define a function to allow input to it when it initiates its execution and output from it when it is done.
Name:Programmer's Toolbox
Description:MATLAB has useful built-in functions and we will explore many of them in this section. We will learn about polymorphism and how MATLAB exploits it to change a function's behavior on the basis of the number and type of its inputs. Because random numbers play an important role in computer programming, we will learn how to use the MATLAB random number generator. We will learn how to get input from the keyboard, how to print to the Command Window, and how to plot graphs in a Figure window. Finally, we will learn how to find programming errors with the help of the debugger.
Name:Selection
Description:Selection is the means by which MATLAB makes decisions about the order in which it executes its statements. We will learn how to use the if-statement, which is the most important method of selection. We will learn how to use relational operators and logical operators. We will learn how to write polymorphic functions and how to make functions resistant to error.
Name:Loops
Description:Loops give computers their power. We will learn how to use both of MATLAB's loop constructs: the for-loop and the while-loop. We will learn how the break-statement works, and we will use nested loops. We will learn how to make loops more efficient. We will learn about logical indexing and will see how to use it to produce implicit loops that are efficient and easy for a user to understand.
Name:Data Types
Description:Computers operate on bits, but humans think in terms of numbers, words, and other types of data. Like any good language, MATLAB organizes bits into convenient data types. We will study those types in this section. We will learn that there are ten types of numbers and that there are conversion functions to change one type into another. We will learn much more about strings and how the characters in them are encoded as numbers. We will learn how to produce heterogeneous collections of data via structs and cells, and we will learn how to store points in time and time durations.
Name:File Input/Output
Description:Files are named areas in permanent memory for storing data that can be used as input or output to MATLAB and to other programs. We will be introduced to MATLAB’s most important methods for reading and writing files. We will learn how to create, read from, and write into MAT-files, Excel files, text files, and binary files. We will learn how to navigate among folders with MATLAB commands.
This course teaches computer programming to those with little to no previous experience. It uses the programming system and language called MATLAB to do so because it is easy to learn, versatile and very useful for engineers and other professionals. MATLAB is a special-purpose language that is an excellent choice for writing moderate-size programs that solve problems involving the manipulation of numbers. The design of the language makes it possible to write a powerful program in a few lines. The problems may be relatively complex, while the MATLAB programs that solve them are relatively simple: relative, that is, to the equivalent program written in a general-purpose language, such as C++ or Java. As a result, MATLAB is being used in a wide variety of domains from the natural sciences, through all disciplines of engineering, to finance, and beyond, and it is heavily used in industry. Hence, a solid background in MATLAB is an indispensable skill in today’s job market. Nevertheless, this course is not a MATLAB tutorial. It is an introductory programming course that uses MATLAB to illustrate general concepts in computer science and programming. Students who successfully complete this course will become familiar with general concepts in computer science, gain an understanding of the general concepts of programming, and obtain a solid foundation in the use of MATLAB. Students taking the course will get a MATLAB Online license free of charge for the duration of the course. The students are encouraged to consult the eBook that this course is based on. More information about these resources can be found on the Resources menu on the right.