MATLAB 第二章 字符串数组、胞元数组和构架数组
作者:互联网
一、字符串数组
创建
连接
转换
操作函数
二、胞元数组
创建
寻访
显示
三、架构数组
直接赋值
struct定义结构型变量
field1 = 'Class';value1 = {'dsj1901','dsj1902','dsj1903'};
field2 = 'Name';value2 = {'wd','xm','xh'};
field3 = 'Sex';value3 = {'male','male','female'};
field4 = 'Number';value4 = {'20190001','20190002','20190003'};
field5 = 'English';value5 = {75,88,67};
field6 = 'Math';value6 = {77,77,88};
field7 = 'Computer';value7 = {89,66,99};
Student = {field1,value1,field2,value2,field3,value3,field4,value4,field5,value5,field6,value6,field7,value7};
disp Student;
标签:Student,field2,field3,field1,field6,MATLAB,数组,胞元 来源: https://www.cnblogs.com/zjq182/p/16406789.html