two useful function

所属分类:Windows编程
开发工具:matlab
文件大小:1KB
下载次数:1
上传日期:2018-05-17 18:04:44
上 传 者3315030
说明:  函数一为matlab画的图片添加不同颜色颜色对应的legend 函数二在matlab中基于调试等级输出变量,控制程序运行时debug消息输出
(function1:add legend on color for the plotted figure in Matlab function2:the function can control the debug message output based on the different debug levels settings)

文件列表:
DebugPrintf.m (548, 2017-03-02)
legend_add.m (409, 2017-06-19)

函数说明: DebugPrintf(option, str, varargin):作为一个函数,option指该debug语句的调试等级,str指输出语句,varargin指输出变量或字符串;通过控制global debug_level,就可以完成对工程内所有debug语句的输出控制; lengend_add:作为一个函数,在matlab中使用plot生成figure,需要对不同的颜色块添加legend,采用此函数;得到的效果在figure中会出现带着不同颜色的方块,方块后带有相应的legends;

近期下载者

相关文件


收藏者