开发环境 包括:命令窗口、图形窗口、编辑窗口 + MATLAB File Edit View Web window Help c t? current Directory: d: MATLAB6p5lwork Stack Bytes class 16 double array 1x100 300 double array yl y2 1x101 1x100 arr ay Current iru nd Ratory y2=sin(.2);%向量y2等于sin(x y=(in(x).2:x向量y3等于(sin(x) lot G, y1) plot (x, y2) aStart
开发环境 包括:命令窗口、图形窗口、编辑窗口
命令窗口 可在提示符后输入交互式命令 结果会自动的产生 例如 MATLAB Command window 回区 File Edit View Window Help bG》启爵8? To get started, type one of these: helpwin, helpdesk, or demo Forproductinformationtypetourorvisitwww.mathworks.com sqrt (9) command (typed at prompt) ans MATLAB output MATLAB prompt (>)and cursor(D)
命令窗口 – 可在提示符后输入交互式命令 – 结果会自动的产生 – 例如: MATLAB prompt (>>) and cursor (|) command (typed at prompt) MATLAB output
图形窗口 在窗口中输入: °Plot([1,24,9,16][1,2,34,5] MATLAB划出如下图形 d Figure No. 1 File Edit lools window Help ‖口舀AAn/ 35 25
图形窗口 在窗口中输入: • Plot([1,2,4,9,16],[1,2,3,4,5]) • MATLAB 划出如下图形:
编辑窗口 用来创建和修改 M-files( MATLAB脚本) I Editor- Untitled 回凶 ile Edit Text Cell Tools Debug D》当的f相省省追 Stack:Bas.田四日口 scr Ln 1 Col 1 O/R
编辑窗口 – 用来创建和修改M-files (MATLAB 脚本)
Matlab的帮助系统 (1)帮助命令help; (2)帮助窗口。 夏 ATLAH EileEdit Debug Desktop Window Hely Dc算目? Current Directory: Progran Files\MATLABTI\work□ Shortcuts a How to Add 2 What'sNew Current Directory -,, les\MATLAB71Atok . Fi ze Last Nd To get started. select MATLAB Help or Demos from the Holp menu. > help sqrt SART Square root. SART (X> is the square root of the elements of X. Complex results are produced if x is not positi rtm, realsqrt, hypo workspace Over loaded functions or methods (ones with the same nsoe in other directories help syo/sgrt.m doc sqrt A sturt
Matlab的帮助系统 (1)帮助命令help; (2)帮助窗口