
matlab
文章平均质量分 75
xiaoding133
My name is Ma dingding. I’m a student, and software cultivator living in NanJing. This is my software development blog. I also study the aspect of speech recognition.If you are on Weibo,you can follow me at @xiaoding133.
展开
-
matlab感知机函数相关
使用函数net=newp(pr,s,tf,lf)创建,分界线绘制函数:plotpc(w,b);w为权值矩阵,b为偏置。输入/目标向量绘制函数plotpv(p,t);p为输入向量,V为目标向量实例代码: p = [0 0 1 1; 0 1 0 1];t = [0原创 2011-09-23 15:17:28 · 7740 阅读 · 0 评论 -
Matlab常用操作。。
(1)管理命令和函数addpath :添加目录到MATLAB搜索路径doc :在Web浏览器上现实HTML文档help :显示Matlab命令和M文件的在线帮助helpwinhelpdesk :help 兄弟几个lookfor :在基于Matlab搜索路径的所有M文件中搜索关键字partialpath:部分路径名 8*)path转载 2011-12-31 15:19:52 · 1465 阅读 · 0 评论 -
Matlab中mex与C混合编程总结
使用mex和C可以加快算法的运行速度,mex文件包含一个入口函数如下:void mexFunction( int nlhs, mxArray *plhs[],int nrhs, const mxArray *prhs[] ) 入口函数有四个参数:prhs为mxArray结构体类型的指针数组,该数组的元素按顺序指向所有的输入参数;nrhs为整数类型,它标明了输入参数的个数。plhs:原创 2012-03-02 15:27:50 · 8277 阅读 · 0 评论 -
matlab中的xcorr和autocorr
Matlab中用于计算自相关函数的指令是xcorr.比如矩阵A=[1 2 3]; xcorr(A)=3.0000 8.0000 14.0000 8.0000 3.0000自相关函数是信号间隔的函数,间隔有正负间隔,所以n个长度的信号,有2n-1个自相关函数值,分别描述的是不同信号间隔的相似程度。 比如,上面的矩阵,最后得到5个结果,其中第三个是自己和自己相乘,转载 2012-03-11 20:36:45 · 13936 阅读 · 1 评论 -
Matlab 制作《最炫民族风》弱爆了,附代码
大家可以在Matlab下实验下。。。。。。% Most shining national wind//最炫民族风 on Matlab% The Modification is from "canon", not by mefs = 44100; % sample ratedt = 1/fs;T16 = 0.125;t16 = [0:dt:T16];[temp k转载 2012-05-22 22:12:52 · 8846 阅读 · 4 评论 -
支持向量机多分类libSVM
支持向量机多分类可以采用两种方式,1.一对一 one vs one 2.一对多 one vs rest 1.one vs rest clc;clear all;[iris_label,iris_data] = libsvmread('iris.scale');%读取数据到matlab格式% [~,~,labels] = unique(species); %# labe原创 2012-06-19 14:54:32 · 7098 阅读 · 5 评论 -
MATLAB信号处理工具箱函数
转:http://wang5151ying.blog.163.com/blog/static/7855355220085213055721/ 函数说明波形产生和绘图chirp产生扫描频率余弦diric产生Dirichlet或周期sinc信号转载 2012-11-17 20:14:00 · 11395 阅读 · 0 评论 -
群延迟函数(group delay function)&群延迟滤波器
最近看了许多介绍Group delay function的论文,文章中大篇幅提到Group delay,group delay of digital filters,对这个方面的知识好像还挺有用的,所以想把它记录下来。然后总结下计算Group delay function的步骤。 假设有N个样本的脉冲响应为h(n)的数字滤波器,n为时间序列标号,对该数字滤波器进行离散时间傅原创 2012-11-17 21:02:54 · 29810 阅读 · 2 评论 -
EM算法训练GMM的Matlab实现过程(总结)
最近看到论文中很多地方提到EM算法,之前对EM算法只是大概知道是一个参数优化算法,而不知道具体的过程,通过阅读相关的资料,大概了解了其推导过程以及实现过程。 GMM模型就是由若干个高斯分量相互组成的,通过混合的高斯模型来逼近样本的真实分布。 GMM模型估计包括三个参数:混合权重,每个高斯函数的均值以及方差,他们的递推公式如下: 权重的递原创 2012-03-22 17:33:56 · 37806 阅读 · 102 评论 -
Selecting Features for Classifying High-dimensional Data
Reducing the number of features (dimensionality) is important in statistical learning. For many data sets with a large number of features and a limited number of observations, such as bioinformatics转载 2011-12-26 19:30:24 · 2416 阅读 · 0 评论 -
matlab 进行PCA分析
% This program is used to explain how PCA works and the idea behind the% method. This example is given in the ISA book (Chapter 8, simple example)% The process is composed of a valve a thermometer转载 2011-12-02 13:27:43 · 1351 阅读 · 1 评论 -
用Matlab 的C++ Math Library解决工程问题
IntroductionIn the previous article, we studied how can use MATLAB C API to solve engineering problems. In this article I will show you how can use MATLAB C++ math library. The MATLAB� C++ Math Li转载 2011-12-02 13:06:59 · 4862 阅读 · 1 评论 -
创建一个BP网络,并评估其性能
%创建一个BP网络net = newff([-2 2],[4 1],{'tansig','purelin'},'trainlm','learngdm','msereg');p = [-2 -1 0 1 2];t = [0 1 1 1 0];y = sim(net,原创 2011-09-23 16:17:07 · 1030 阅读 · 1 评论 -
给定一个样本输入向量P,和目标向量T,设计单层感知机进行分类
P=[-0.5 -0.6 0.7; 0.8 0 0.1];T=[1 1 0];net=newp([-1 1;-1 1],1);%返回画线的句柄,下一次绘制分类线时将旧的删除handle=plotpc(net.iw{1},net.b{1});%设置训练次数最大为原创 2011-09-23 16:49:51 · 1957 阅读 · 0 评论 -
MATLAB中FFT的使用方法
一.调用方法X=FFT(x);X=FFT(x,N);x=IFFT(X);x=IFFT(X,N)用MATLAB进行谱分析时注意:(1)函数FFT返回值的数据结构具有对称性。例:N=8;n=0:N-1;xn=[4 3 2 6 7转载 2011-09-25 18:07:26 · 3659 阅读 · 0 评论 -
matlab中dos命令的应用
点鼠标有时候太费事了。像这种喜欢敲键盘的就不喜欢腾出手来去摸那个鼠标。这里写几个自己常用的命令,在命令窗口直接操作,就不用鼠标啦。1.打开当前目录。 这个是我经常使用的。以前要打开工作目录,得点n次鼠标才能实现。 于是就想偷懒,发现windows的cmd命令在这里也能用。哈哈~ 如果你还不知道的话 也可以试试吧~ (注:加"!"的表示是dos命令)。>> !st转载 2011-10-25 21:55:53 · 5001 阅读 · 1 评论 -
matlab问题总结
如何在二维图形的X轴上面标示p?x=linspace(0,2*pi);plot(x, sin(x), x, cos(x));axis tight; grid onset(gca, 'xtick', [0, pi/2, pi, 3*pi/2, 2*pi])set(gca, 'xticklabel', {'0', 'p/2原创 2011-11-17 16:00:53 · 747 阅读 · 0 评论 -
各种滤波器的设计
fs=8000; % Sampling ratefilterOrder=5; % Order of filter% ====== low-pass filtercutOffFreq=1000;[b, a]=butter(filterOrder, cutOffFreq/(fs/2), 'low');[h, w]=freqz(b, a);subplot(2,2,1);转载 2011-11-17 20:46:57 · 1347 阅读 · 0 评论 -
层次聚类
层次聚类,按最小距离合并向量,直到一个类 function level=hierClustering(distMat, method)%hierClustering: Agglomerative hierarchical clustering%% Usage:% level=hierClustering(distMat)% level=hierClustering(dist转载 2011-11-18 19:03:19 · 1062 阅读 · 0 评论 -
检波形的波峰与波谷
检波形的波峰与波谷function [maxtab, mintab]=peakdet(v, delta, x)%PEAKDET Detect peaks in a vector% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local% maxima and minima ("peaks") in the转载 2011-12-01 16:26:25 · 5039 阅读 · 0 评论 -
鲁棒性语音识别系统设计与实现
本文主要采用matlab和C语言设计并实现了一个鲁棒性语音识别实验系统,通过该系统验证各种抗噪语音特征在不同信噪比的噪声环境下的识别率,并详细介绍了系统的结构以及开发工具与平台,最后介绍了系统的功能、实验流程以及该系统的实现。系统演示下载路径:http://pan.baidu.com/s/1o61Kaa2一、系统结构 本文研究的是非特定人鲁棒性语音识别,采用的是小原创 2015-05-24 17:38:46 · 6630 阅读 · 1 评论