wordcloud
Create word cloud chart from text, bag-of-words model, bag-of-n-grams model, or LDA model
name{1} = {'数字图像处理'};
name{2} = {'禹晶' '肖创柏' '廖庆敏'};
name{3} = {'1 绪论','2 数字图像基础','3 空域图像增强','4 频域图像增强','7 图像压缩编码','9 二值图像形态学','8 图像分割','5 图像复原','6 几何校正','10 特征提取'};
name{4} = {'连通分量' '邻域'...
'空域' '滤波器' '卷积' '互相关' '差分' ...
'傅里叶变换' '频域' 'FIR' 'IIR'...
'边缘检测' '区域生长' '阈值'...
'模式识别' '监督学习(分类)' '非监督学习(聚类)' '神经网络' '卷积神经网络' '最小距离分类器' 'k近邻搜索' '半径搜索'...
'膨胀' '腐蚀' '开运算' '闭运算' '击中/击不中运算'...
'颜色空间' '数字图像' '像素'};
name_conta =[string(name{1}),string(name{2}),string(name{3}),string(name{4})];
m(1) = length(name{1});
m(2) = length(name{2});
m(3) = length(name{3});
m(4) = length(name{4});
sz = logspace(2,1,4);
s = [repmat(sz(1),m(1),1);repmat(sz(2),m(2),1);repmat(sz(3),m(3),1);repmat(sz(4),m(4),1)];
clr = turbo(sum(m));
figure; wordcloud(name_conta,s,'color',clr,'FontName','Microsoft YaHei UI Bold');