1,N点fft进行后频率的取值范围?
(-N/2:N/2-1)*fs
相当于fftshift
result(1:N/2)=temp(N/2+1:N);
result(N/2+1:N)=temp(1:N/2);
将1-fs转化为-fs/2--fs/2
(N/2+1:N)-N
(1:N/2)-1;
2,图例说明放的位置?
legend('string1','string2',.....pos);
pos=1 %坐标轴的右上角
pos=2 %坐标轴的左上角
pos=3 %坐标轴的左下角
pos=4 %坐标轴的右下角
3,添加进度条
steps=150;
hwait=waitbar(0,'请等待>>>>>>>>');
step=steps/100;
for k=1:steps
end
close(hwait);
4,matlab中的eps是什么意思?
说matlab无法表示介于1和1+eps之间的数,这些数将被四舍五入到1或1+eps。
5,matlab写成txt数据类型?如何读txt文件类型?
fid1=fopen('F:\shuju\ref_real.txt','w');
fprintf(fid1,'%f\n',ref_real);
fclose(fid1);
f0=fopen('F:\shuju\ref_imag.txt','r');
dataimag=textscan(f0,'%f');
im=dataimag{1};
fclose(f0);
6,matlab画图,线型颜色????
plot画图的颜色线型
y 黄色 · 点线
m 粉红 ○ 圈线
c 亮蓝 × ×线
r 大红 + +字线
g 绿色 - 实线
b 蓝色 * 星形线
w 白色 : 虚线
k 黑色 -.
-- 点划线
线形:
[ + | o | * | . | x | square | diamond | v | ^ | > | < | pentagram |hexagram ]
square 正方形
diamond 菱形
pentagram 五角星
hexagram 六角星
eg:plot(t,y,'-r',t,y0,':b',t,-y0,':b') % -r表示红色实线,:b表示蓝色点线
转载:http://blog.sina.com.cn/s/blog_5ecfd9d90100i6hj.html
3012

被折叠的 条评论
为什么被折叠?



