欢迎来到天天文库
浏览记录
ID:8980632
大小:45.00 KB
页数:6页
时间:2018-04-13
《matlab的判别和转换函数》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Matlab的判别和转换函数ISCHARTrueforcharacterarray(string).ISCHAR(S)returns1ifSisacharacterarrayand0otherwise.ISNUMERICTruefornumericarrays.ISNUMERIC(A)returns1ifAisanumericarrayand0otherwise.Forexample,sparsearrays,anddoubleprecisionarraysarenumericwhilestrings,cellarrays,andstructurearraysarenot.ISL
2、OGICALTrueforlogicalarray.ISLOGICAL(X)returns1ifXisalogicalarrayand0otherwise.Logicalarraysmustbeusedtoperformlogical0-1indexing.ISNANTrueforNot-a-Number.ISNAN(X)returnsanarraythatcontains1'swheretheelementsofXareNaN'sand0'swheretheyarenot.Forexample,ISNAN([piNaNInf-Inf])is[0100].ISEMPTYTruef
3、oremptymatrix.ISEMPTY(X)returns1ifXisanemptyarrayand0otherwise.Anemptyarrayhasnoelements,thatisprod(size(X))==0.ISINFTrueforinfiniteelements.ISINF(X)returnsanarraythatcontains1'swheretheelementsofXare+Infor-Infand0'swheretheyarenot.Forexample,ISINF([piNaNInf-Inf])is[0011].ISFINITETrueforfinit
4、eelements.ISFINITE(X)returnsanarraythatcontains1'swheretheelementsofXarefiniteand0'swheretheyarenot.Forexample,ISFINITE([piNaNInf-Inf])is[1000].ForanyX,exactlyoneofISFINITE(X),ISINF(X),orISNAN(X)is1foreachelement.ISOBJECTTrueforMATLABobjects.ISOBJECT(A)returns1ifAisaMATLABobjectand0otherwise.
5、ISSTRUCTTrueforstructures.ISSTRUCT(S)returns1ifSisastructureand0otherwise.ISCELLTrueforcellarray.ISCELL(C)returns1ifCisacellarrayand0otherwise.ISJAVATrueforJavaobjectarraysISJAVA(J)returns1ifJisaJavaobjectarray,and0otherwise.ISFIELDTrueiffieldisinstructurearray.F=ISFIELD(S,'field')returnstrue
6、if'field'isthenameofafieldinthestructurearrayS.ISSPARSETrueforsparsematrix.ISSPARSE(S)is1ifthestorageclassofSissparseand0otherwise.DOUBLEConverttodoubleprecision.DOUBLE(X)returnsthedoubleprecisionvalueforX.IfXisalreadyadoubleprecisionarray,DOUBLEhasnoeffect.DOUBLEiscalledfortheexpressionsinFO
7、R,IF,andWHILEloopsiftheexpressionisn'talreadydoubleprecision.DOUBLEshouldbeoverloadedforallobjectswhereitmakessensetoconvertitintoadoubleprecisionvalue.INT2STRConvertintegertostring.S=INT2STR(X)roundstheelementsofthematrixXtointegersandconver
此文档下载收益归作者所有