如下图所示,nclcolormap是拥有248个字段的结构体
下面使用scipy可将任意字段读取
import scipy.io as scio
dataFile = r'D:\我的文件\我的数据\nclcolormap.mat'
data = scio.loadmat(dataFile)
colormap_all = data['nclcolormap']
# print(type(colormap_all))
BlAqGrYeOrRe = colormap_all['BlAqGrYeOrRe']
print(BlAqGrYeOrRe)