没有合适的资源?快使用搜索试试~ 我知道了~
matlab_overview.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 75 浏览量
2023-06-18
13:14:11
上传
评论
收藏 249KB PDF 举报
温馨提示
试读
5页
matlab_overview.pdf
资源推荐
资源详情
资源评论
MATLAB Overview
MATH2070: Numerical Methods in Scientific Computing I
Location: http://people.sc.fsu.edu/∼jburkardt/classes/math2070 2019/matlab overview/matlab overview.pdf
The interactive MATLAB language lets us do computational experiments.
If you are completely new to MATLAB, then you should review the information at places like the MATH-
WORKS tutorial website: https://www.mathworks.com/support/learn-with-matlab-tutorials.html
1 The Very Basics
When you start MATLAB, you see a command window with a prompt sign
1 >>
This is where you type your commands.
You can give simple arithmetic commands like 98-53, but most MATLAB commands will involve computing
something and storing the result in a named variable. Once a variable has a value, it can be used in later
computations:
1 >> x = 0 . 9 9
2 >> y = x ∗ x % This c oul d a l s o be w r i t t e n as x ˆ2
Arithmetic operators include +, -, *, /, ^ . Mathematical functions include abs(), max(), min(),
mod(), sqrt(), and trig functions like sin(), cos().
When a statement computes a value, that value will be printed to the command window. If this is not
desired, simply terminate the statement with a semicolon.
2 M Files
While interactive access to MATLAB is useful, it is often necessary to enter long complicated instructions.
In such a case, it is better to store these instructions as an M file. An M file can be created by any text editor,
or you can use MATLAB’s editor by choosing the NEW menu item and selecting Script or Function. You
can type in your commands, and then save the file, giving it a name, such as pde.m. Once the file is saved,
you can run the commands in the file by typing its name, as in
1 >> pde
or, if this is a function file, you might supply input and collect the resulting output:
1 r e s u l t = la m ber t ( x )
1
资源评论
卷积神经网络
- 粉丝: 338
- 资源: 8460
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功