資源簡介
PLA簡單matlab實現
代碼片段和文件信息
x_1=[120?185?215?275?310?337];
x_2=[110?125?185?250?130?137];
plot(x_1x_2‘ob‘‘linewidth‘3‘markersize‘15);?
hold?on;
x1=[55?98?115?110?95?122?70?205?225?];
y1=[90?178?170?225?270?270?310?345?290?];
plot(x1y1‘xr‘‘linewidth‘3‘markersize‘15)
hold?on;
negpoints?=?[5590-1;3101301;98178-1;1151101;115165-1;1851251;110225-1;2151851;95270-1;2752601;122270-1;70310-1;3371371;205345-1;225280-1]
pospoints?=?[310130-1;115110-1;185125-1;215185-1;275260-1;337137-1]
weight?=?[0300100]
H_value?=?0
sig=true
axis([50?350?50?350])
while?sig
????for?i=1:1:15
????????sig=false
????????q?=?sign(negpoints(i3))
????????h_x_i?=?sign(weight(1)+weight(2)*negpoints(i1)+weight(3)*negpoints(i2))
????????if?h_x_i?==?q
????????????if?(i==15?&&?sig==false?)????????????
???????????????
- 上一篇:正弦噪聲去除消除Fourier變換
- 下一篇:異步電機動態模型
評論
共有 條評論