Elements of MATLAB and Simulink - Lecture 1 - Percro
Elements of MATLAB and Simulink - Lecture 1 - Percro
Elements of MATLAB and Simulink - Lecture 1 - Percro
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Types• Matrix (with type double,int,int8 …)• Strings– Matrix <strong>of</strong> char– Variable length strings using Cell– String functions <strong>and</strong> Regular Expressions• Cell Array– Allows to contain any type– Useful for arrays <strong>of</strong> strings• Structure– Allows to contain structured data– a = []– a.field– a.(name)– fieldnames(a)• Dictionary– Not Native but based on Java Class java.util.Hashtable– x.put(key,value) x.get(key) x.contains(x)– key can be string/number <strong>and</strong> value can be anythingTypesValueTypeReferenceTypeMatrixStructCellH<strong>and</strong>le(number)ObjectJavaObjectFunctionH<strong>and</strong>le