matlab_08_talk8 第八讲 Matlab编程-II.pptVIP

  • 3
  • 0
  • 约5.43千字
  • 约 27页
  • 2016-12-09 发布于江西
  • 举报
第八讲提纲 第七讲回顾 Matlab编程-II - 函数初识 - 控制语句 - 函数变量 第七讲回顾 程序的概念与结构 - 程序: 数据结构+算法 - 结构: 顺序/选择/循环 编程的环境和工具 - m 文件编辑器 m 文件及函数 - m文件: 脚本文件/函数文件 - 函数: 主函数/子函数/… Matlab编程 (续) Matlab编程 (续) Matlab编程 (续) - 函数的输入输出 twosum.m — two inputs, no output threesum.m — three inputs, one output addmult.m — two inputs, two outputs ---------------------------------------------- 1: function twosum(x,y) 2: % twosum Add two matrices 3: % and print the result 4: x+y Matlab编程 (续) 1: function s = threesum(x,

文档评论(0)

1亿VIP精品文档

相关文档