散装绘图技巧
- 1. colorbar - TITLE显示
- 2. 字符串换行输出
- 3. 将信号数据矩阵转换为声音
1. colorbar - TITLE显示
h = colorbar;
set(get(h,'Title'),'string','cm');
2. 字符串换行输出
字符串换行输出:Cell格式
—— 用大括号,分号分割 { ‘a’ ; ’b’ }。
3. 将信号数据矩阵转换为声音
个人使用情况:
- 通常放在需要跑较长时间的代码最后,用来
提醒代码运行结束
load chirp.mat;
sound(y);