![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matlab
Somnus_z
这个作者很懒,什么都没留下…
展开
-
MATLAB 将多张figure生成gif,title随循环自动改变
实现功能MATLAB将循环生成的多张图片整合为一个gif文件,并且title可以随着循环自动改变实现代码 del = 0.5; % time between animation frames for i = 1 : 10 Fig = figure(1); filename = 'saved_gif.gif'; x(i) = i; y = x + 1; plot(x,原创 2021-04-08 17:18:28 · 2716 阅读 · 0 评论 -
Matlab有符号十进制小数转换为有符号十六进制数
实现内容:1) 通过Matlab将生成的随机小数扩大为20位有符号位2) 将拓展后的数据变为补码格式: 负数变为补码,正数保持不变3)将补码格式的十进制小数转换为有符号十六进制数4)将生成的十六进制数写入.coe文件中代码实现% generate the random numberfor i = 1: 10 M(i,1)= (-1)^i *rand(1);end N = length(M);Radix = 16;Coeff_width = 20;% co原创 2021-03-04 06:17:07 · 4913 阅读 · 3 评论 -
matlab plot,eyediagram,constellation diagram(multi-input) and phase offset
plotplot(timeunits,Qin2) % input x and y valuexlim([0 2049]) % setting the x axis rangexlabel('Qin2') % name the x axisylabel('time') % name the y axis生成图片如下:eyediagram:eyeo...原创 2020-05-03 16:12:19 · 2052 阅读 · 0 评论 -
matlab将txt文件中的有符号二进制数转换为十进制数
实现原理本文实现的是将十二位的有符号的二进制数转换为十进制数:由于在数字在显示中,如果高位为0会在显示中被省去,所以,这里无法检测到每个数的位数都为12位,也就是无法全部检测到12位的符号位。比如: 000011110000, 在显示的时候只会显示: 11110000如果此时检测最高位是否为1, 就只会检测到第8位为1,检测为负数。所以由于是将12位有符号位的二进制数转换,也就是说,它的...原创 2020-05-03 15:47:41 · 6113 阅读 · 0 评论