MATLAB_Notes_常用函数一览.doc

上传人:pu****.1 文档编号:543025647 上传时间:2023-07-13 格式:DOC 页数:4 大小:36.50KB
返回 下载 相关 举报
MATLAB_Notes_常用函数一览.doc_第1页
第1页 / 共4页
MATLAB_Notes_常用函数一览.doc_第2页
第2页 / 共4页
MATLAB_Notes_常用函数一览.doc_第3页
第3页 / 共4页
MATLAB_Notes_常用函数一览.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《MATLAB_Notes_常用函数一览.doc》由会员分享,可在线阅读,更多相关《MATLAB_Notes_常用函数一览.doc(4页珍藏版)》请在金锄头文库上搜索。

1、与变量有关的函数clearisvarnamegenvarnameansnamelengthmax特殊值epsintmaxintminrealmaxrealminpii,jinfNaNcomputerversion位运算相关函数bitandbitorbitcmpbitxorbitgetbitsetbitshiftswapbytes数据类型int8,uint8,int16,uint16,int32,uint32,int64,uint64singledoublelogicalcharcomplexcell arraystructurefunction handleuser classJava cla

2、ss-常用函数isnanisinfisfiniteisaclasswhosformat逻辑运算及逻辑运算函数(括号内为函数对应的运算符)true,falselogicaland(&),or(|),not(),xor,any,all&,|eq(=),ne(=),lt(),le(=)is *(*为通配符),cellfunstrcmp,strncmp,strcmpi,strncmpiany和all函数any:至少有一个元素非零返回真,全零假,忽略NaN值all:所有元素非零返回真,否则返回假。忽略NaN值常用字符串操作函数strcatstrvcatcharischarcellstriscellstr

3、blanksdeblanksprintfsscanfevalfevalloweruppersortstrtrimstrrepstrjustfindstrstrfindstrcmpstrncmpstrmatchstrtokisstrpropisletterisspacenum2strstr2numint2strstr2doublemat2str进制转换函数dec2bindec2hexdec2basebin2decoct2dechex2decbase2dec有关结构数组函数汇总dealisfieldrmfieldstruct2cellfieldnamesisstructstruct有关单元数组的函

4、数汇总cell celldispcellstructcellfuncellplotiscellnum2cellcell2mat用函数句柄作为操作对象的函数functionsfunc2strstr2funcsaveloadisaisequalfeval当前的日期或时间函数datenowclock-与日期和时间相关的其他函数addtodatecalendardatetickeomdayweekdaycputimetic,tocetime常用特殊矩阵函数oneszeroseyediagrandrandnrandintrandpermaccumarraymagic连接矩阵的函数cathorzcatve

5、rcatrepmatblkdiag获取矩阵大小与形状的函数lengthnumelsizendims重塑矩阵形状的函数reshaperot90fliplrflipudflipdimtransposectranspose矩阵元素移位和排序的相关函数circshiftsortrowssortissorted函数参数相关函数functionnargoutnargoutchkvarargoutnarginnargchkvarargininputname-其他常用函数inputrunpackpcodediarypauseglobalendechocd文件I/O函数loadsavefopenfclosefr

6、eadfwritefscanffprintffgetlfgetsdeleteexistfeoffseekftellfrewindtempdirtempname读写TXT文件的相关函数csvreaddlmreadtextreadcsvwritedlmwrite-常用的格式字符串%d读一个带符号整数值%u读一个整数值%f读一个浮点值%s读一个空线间隔或定界符隔开的字符串%q读一个双引号字符串,忽略引号%c读字符,博爱扩空线间隔读写Excel文件的相关函数xlsfinfoxlswritexlsread读写图像文件imreadimwriteimfinfo二维绘图函数plotstemholdsubplo

7、tareabarhistpolarcompass绘图工具boxgridaxispanzoomdatacursormode绘图注释legendtitletexlablel *xlabel,ylabelgtextannotation图形对象的创建函数与函数描述root figureaxesuicontroluimenuuicontextmenuuitoolbaruibuttongroupuipanelimagelightlinepatchrectanglesurfacetextplot,area,bar,stem等hggroupannotation常用按键字符对应的ASCII值TAB:8Enter:13ESC:27Spacebar:32A-Z:65-90BackSpace:9Delete:26(左右上下):28-310-9:48-57a-z:97-122

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号