- 25
- 0
- 约4.18万字
- 约 77页
- 2017-06-07 发布于河南
- 举报
matlab快速入门(西工大西交大教学内参超详细)
Matlab
MATLAB软件与基础入门
变量
变量无需定义即可使用。(这与C语言有所区别)
变量名的大小写是敏感的。
变量的第一个字符必须为英文字母,而且不超过31个字符。
变量名可以包含下连字符、数字,但不能为空格符、标点 。
向量(数组、矩阵)的创建和访问
在Matlab中,这三个概念在创建和显示的时候没有任何区别。
1. 交互式的指令操作方式。
用户输入命令--按下回车键--系统执行该指令--给出运算结果。
向量的创建 要创建一个向量,在命令窗口下输入:
t=0:1:10 屏幕显示:
t=0:1:10 (输入数据)
(回车,显示结果)
t =
0 1 2 3 4 5 6 7 8 9 10
注意:
向量的第一个元素的下标是1,而不是0。T=0:1:10产生了0~10步长为1的共11个数,保存在t(1),t(2),┉t(11)中。
矩阵的创建
例如:创建一个3×3的矩阵,输入 :
a=[1 2 3;4 5 6;7 8 9]
屏幕输出
a =
1 2 3
4 5 6
7 8 9
备注:clc是表示清零
访问矩
您可能关注的文档
- 2012届陕西省高考英语考前特训 第六套.doc
- 2012夏季时尚透气百搭凉鞋.doc
- 2012届高考化学复习名师复习题6.doc
- 2012年1月份生产经营计划.doc
- 2012年5月化学试题.doc
- 2012年8月下半月电解锰资讯.doc
- 2012年6月27日期末实验题.doc
- 2012年3月北京东城普通校联考物理.doc
- 2012年上半年工作总结04627.doc
- 2012年9月26日东莞演练方案(东洲化工点).doc
- unidir -人工智能与国际安全:理解风险并为建立信任措施铺平道路 AI and International Security - Understanding the Risks and Paving the Path for Confidence-Building Measures.pdf
- unidir -通过负责任行为的规范、规则和原则推进空间安全的非洲视角 African Perspectives for Advancing Space Security Through Norms, Rules and Principles of Responsible Behaviours - Workshop Summary Report.pdf
- wfp -约旦学校供餐计划影响评估 Jordan, School Meal Programme Impact Evaluation.pdf
- wfp -注意差距 莱索托案例研究 Mind the Gap -Lesotho Case Study.pdf
- unesco -数字公共产品与新兴技术促进公平和包容的知识获取 Dubai Declaration on Open Educational Resources (OER) digital public goods and emerging technologies for equitable and inclusive access to knowledge.pdf
- unidir -致命自主武器系统领域新兴技术相关提案 Proposals Related to Emerging Technologies in the Area of Lethal Autonomous Weapons Systems- A Resource Paper (updated).pdf
- who -脊髓灰质炎过渡战略框架:监测与评估 Polio transition strategic framework - Monitoring and evaluation.pdf
- who -高效实用的结核病治疗试验平台会议报告 Platform for efficient and practical tuberculosis treatment trials.pdf
- unesco -国际性教育技术指导纲要:循证方法 International technical guidance on sexuality education - an evidence-informed approach.pdf
- UNIDIR_unidir -涉足浑浊之水:海底通信电缆与负责任的国家行为 Wading Murky Waters - Subsea Communications Cables and Responsible State Behaviour.pdf
原创力文档

文档评论(0)