向量vector? 隨機化ran=random?
矩陣matrix
t=ones(14? 3)
t=zeros(14? 3)
age*grade*gender
采樣率sample rate?
變量variable
row column
min? help max? mean? rand zeros
find(f1>0.001&f1<0.02)
&同時 and
豎或者or
for? ii=1:10 disp(f1(ii)):end
for循環(huán)
把數(shù)1到10依次顯示出來
clear清除
edf:歐洲數(shù)據(jù)模式
abs:對目標取絕對值
plot:matlab中二維線畫圖函數(shù)
hold on:作用是保持原圖并接受此后繪制的新的曲線拇惋,疊加繪圖
fft:快速傅里葉變換
figure在matlab中是建立圖形的意思此叠,系統(tǒng)自動從1晶乔,2族铆,3,4等等來建立圖形雏赦,數(shù)字代表第幾副圖形抬闯,figure(1)就是第一副圖的意思
figure浑塞,plot(t,y)
t代表時間? y代表信號
t是X軸讲坎,y是Y軸
中括號:向量
Y=sin(wt)正弦
w角的頻率
t:0:0.001:2
t:0:0.0001:2
y=sin(2*pi*t):
figure,plot(t,y)
y2=sin(4*pi*t)
figure,plot(t,y2)
figure
plot(t,y',r'):hold on:plot(t,y2',g'):
w=2*pi*f
f=2
周期是1/f
頻率是周期的倒數(shù)
y3=y2*y 兩信號的疊加
plot(t,y3',b'):hold on