其他分享
首页 > 其他分享> > MATLAB 第二章 字符串数组、胞元数组和构架数组

MATLAB 第二章 字符串数组、胞元数组和构架数组

作者:互联网

一、字符串数组

创建

image

连接

image

转换

image

操作函数

image
image

二、胞元数组

image
image

创建

image

寻访

image

显示

image

三、架构数组

image

直接赋值

image
image

struct定义结构型变量

image
image
image

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