随笔分类 -  Matlab

摘要:真实的温度测试数据,通过加热棒加热一盆水测得的真实数据,X轴是时间秒,Y轴是温度: 1)滤波前 2)滤波后(p=10, q=0.0001, r=0.05, kGain=0;) 2)滤波后(p=10, q=0.00001, r=1, kGain=0;),Y轴放大10倍并取整 。 相关C语言代码: #define LINE 1024static float prevDa... 阅读全文
posted @ 2014-06-27 12:36 Craftor 阅读(9158) 评论(0) 推荐(0)
摘要:x=0:0.1:6*pi; for step=1:2:100 s=0; for i=1:2:step s = s+1/i*sin(i*x); end plot(s);set(figure(1),'visible','off'); filename=[num2str(step, '%04d'),'.png']; print(1, '-dpng',filename); end 阅读全文
posted @ 2014-06-27 12:20 Craftor 阅读(9136) 评论(0) 推荐(0)
摘要:Step 1: Convert any text into uint8 type in matlab : Step 2: Add models in matlab : copy the uint8 numbers and put them in Repeating Sequence Stair model: Step 3: Connect your Headphone or... 阅读全文
posted @ 2014-06-27 12:17 Craftor 阅读(283) 评论(0) 推荐(0)
摘要:1. Only version not older than R2013 supports Raspberry Pi. First, download support package in Matlab: http://www.mathworks.cn/matlabcentral/fx_files/40313/5/raspberrypi.zip 2. Open raspberrypi.mlpk... 阅读全文
posted @ 2014-06-27 12:16 Craftor 阅读(546) 评论(0) 推荐(0)
摘要:转自网络,亲自验证过。环境:VS2010、MatlabR2010b、XP 32bit1、VS2010里新建一个工程,Win32 Console Application,默认。2、菜单:Project → Properties... 选择 Configuration Properties下的 VC++... 阅读全文
posted @ 2012-11-05 15:47 Craftor 阅读(2339) 评论(0) 推荐(0)