Use the fast Fourier transform function fft to analyse following signal. Plot the original signal, and the magnitude of its spectrum linearly and logarithmically. Apply Hamming window to reduce the leakage. . The hamming window can be coded in Matlab as for n=1:N hamming(n)=0.54+0.46*cos((2*n-N+1)*pi/N); end; where N is the data length in the FFT.
标签: matlab fft
上传时间: 2015-11-23
上传用户:石灰岩123
This Interface Control Document (ICD) defines the requirements related to the interface between the Space Segment (SS) of the Global Positioning System (GPS) and the Navigation User Segment (US) of the GPS.
标签: Interface Control Document gps
上传时间: 2016-01-20
上传用户:芃发发da
simple scalar simulator user guide!
标签: simplescalar manal
上传时间: 2016-05-26
上传用户:hitlitao
asp实现限制一个ip只能访问一次的方法 <% '///////////////////////////////////////////////////// '// // '//作用:一个IP地址只允许访问本页一次 // '//引用:<!-- #include file="Check_Ip.asp" --> // '// // '///////////////////////////////////////////////////// 'Response.Charset = 936 '设置输出编码为简体中文 'Response.Buffer = false '关闭缓冲区 Dim Fso,ts,IpList,Cfs '设置Cookies函数 Function SetCookie() Response.Cookies("IsBrow") = "Brow" Response.Cookies("IsBrow").Expires = Date+365 End Function '记录IP地址函数 Function WriteIp(FileName, IpAddress) Set Fso = Server.CreateObject("Scripting.FileSystemObject") Set ts = Fso.OpenTextFile(Server.MapPath(FileName),8,true) ts.WriteLine IpAddress ts.Close Set ts = Nothing Set Fso = Nothing End Function '读取IP地址函数 Function ReadIpList(FileName) Set Fso = Server.CreateObject("Scripting.FileSystemObject") If Not Fso.FileExists(Server.MapPath(FileName)) Then CreateFile("Iplist.txt") Exit Function End If Set ts = Fso.OpenTextFile(Server.MapPath(FileName)) Iplist = ts.ReadAll ts.Close Set ts = Nothing Set Fso = Nothing ReadIpList = Iplist End Function '创建文件函数 Function CreateFile(FileName) Set Fso = Server.CreateObject("Scripting.FileSystemObject") Set Cfs = Fso.CreateTextFile(Server.MapPath(FileName)) Cfs.Close Set Cfs = Nothing Set Fso = Nothing End Function '关闭当前IE窗口函数(注:IE6下通过,其他浏览器未测试) Function CloseWindow() 'Response.Write "<script>window.location='javascript:window.opener=null;window.close();'</script>" Response.Redirect "http://www.baidu.com" End Function Ip = Request.ServerVariables("REMOTE_ADDR") '获取浏览者IP地址 Cookie = Request.Cookies("IsBrow") '获取当前Cookies 'Response.Write Cookie If Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "" Then Response.Write "本站不允许使用代理访问" Response.End() Else If Cookie = "Brow" Then CloseWindow() Else If Instr(ReadIpList("Iplist.txt"),Ip) <>0 Then CloseWindow() Else WriteIp "Iplist.txt" , Ip End If SetCookie() End If End If %>
上传时间: 2016-07-14
上传用户:helei0915
Ini adalah contoh source code untuk mengganti useragent pada twebbrowser
标签: twebbrowser agent user
上传时间: 2016-11-07
上传用户:beryindo
批处理感知器算法的代码matlab w1=[1,0.1,1.1;1,6.8,7.1;1,-3.5,-4.1;1,2.0,2.7;1,4.1,2.8;1,3.1,5.0;1,-0.8,-1.3; 1,0.9,1.2;1,5.0,6.4;1,3.9,4.0]; w2=[1,7.1,4.2;1,-1.4,-4.3;1,4.5,0.0;1,6.3,1.6;1,4.2,1.9;1,1.4,-3.2;1,2.4,-4.0; 1,2.5,-6.1;1,8.4,3.7;1,4.1,-2.2]; w3=[1,-3.0,-2.9;1,0.5,8.7;1,2.9,2.1;1,-0.1,5.2;1,-4.0,2.2;1,-1.3,3.7;1,-3.4,6.2; 1,-4.1,3.4;1,-5.1,1.6;1,1.9,5.1]; figure; plot(w3(:,2),w3(:,3),'ro'); hold on; plot(w2(:,2),w2(:,3),'b+'); W=[w2;-w3];%增广样本规范化 a=[0,0,0]; k=0;%记录步数 n=1; y=zeros(size(W,2),1);%记录错分的样本 while any(y<=0) k=k+1; y=a*transpose(W);%记录错分的样本 a=a+sum(W(find(y<=0),:));%更新a if k >= 250 break end end if k<250 disp(['a为:',num2str(a)]) disp(['k为:',num2str(k)]) else disp(['在250步以内没有收敛,终止']) end %判决面:x2=-a2*x1/a3-a1/a3 xmin=min(min(w1(:,2)),min(w2(:,2))); xmax=max(max(w1(:,2)),max(w2(:,2))); x=xmin-1:xmax+1;%(xmax-xmin): y=-a(2)*x/a(3)-a(1)/a(3); plot(x,y)
上传时间: 2016-11-07
上传用户:a1241314660
2012系统请手工注册 User:GNU Serial:918A8-20DD8-44ZA1-B0W4A-13T66 方便在服务器更改网页内容
上传时间: 2017-03-20
上传用户:testttt
msp430f5529的技术指导书user guide
上传时间: 2017-04-06
上传用户:amandadada
编译原理 1、读取所有的输入的文本,存入一个二维数组。(数组的宽度固定) 2、对二维数组一行行进行处理 3、对文本进行操作的时候,创建两个临时字符数组,一个存储变量名,一个存储常量。 对某行进行遍历的时候,倘若碰到字母,就读完该单词并存储到临时数组里,进行基本字判断后输出。 光标往后移动该单词的长度后,继续循环。(比如读到的是end,那么我该行的光标就要+3,然后继续循环) 倘若读到数字也是一样,只是不需要判断基本字,所以更为简单。
标签: 编译原理
上传时间: 2017-06-20
上传用户:lbxxx
PL0语言是与pascal类似的语言,但是比pascal语言的词法、语法更加严格苛刻。 在PL0语言中,只有五种类型的单词:关键字、用户自定义标识符、数字、特殊符号以及非法标识符。 根据题目给出的PL0的文法,关键字只有如下几个: Const——用来声明常量; Var——用来声明变量; Procedure——用来声明过程; Begin——声明过程的开始; End——声明过程的结束; Ood——单目运算符,声明为关键字; If——条件语句; Then——条件语句; Call——声明调用函数; While——循环语句; Read——读文件语句; Write——写文件语句; 对于用户自定义标识符应该满足:以字母开头,其后是字母和数字的组合,即:字母(字母|数字)* 数字则是数字字符(0——9)组成的数字串; 特殊符号有如下几个: +,-,*,/,=<>,<,>=,<=,:= 把关键字、算符和界符称为语言固有的单词,标识符、常量称为用户自定义的单词。 为此设置三个全程量:SYM,ID,NUM。 SYM:存放每个单词的类别,为内部编码的表示形式; ID:存放用户所定义的标识符的值,即标识符字符串的机内表示; NUM:存放用户定义的数。
上传时间: 2017-06-20
上传用户:lbxxx