该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

function [tfr,t,f] = tfrwv(x,t,N,trace);

%TFRWVWigner-Ville time-frequency distribution.

%[TFR,T,F]=TFRWV(X,T,N,TRACE) computes the Wigner-Ville distribution

%of a discrete-time signal X,

%or the cross Wigner-Ville representation between two signals.

%

%X : signal if auto-WV, or [X1,X2] if cross-WV.

%T : time instant(s) (default : 1:length(X)).

%N : number of frequency bins (default : length(X)).

%TRACE : if nonzero, the progression of the algorithm is shown

% (default : 0).

%TFR : time-frequency representation. When called without

% output arguments, TFRWV runs TFRQVIEW.

%F : vector of normalized frequencies.

%

%Example :

% sig=fmlin(128,0.1,0.4); tfrwv(sig);

%

%See also all the time-frequency representations listed in

%the file CONTENTS (TFR*)

%F. Auger, May-August 1994, July 1995.

%Copyright (c) 1996 by CNRS (France).

%

%------------------- CONFIDENTIAL PROGRAM --------------------

%This program can not be used without the authorization of its

%author(s). For any comment or bug report, please send e-mail to

%f.auger@ieee.org

if (nargin == 0),

error('At least one parameter required');

end;

[xrow,xcol] = size(x);

if (nargin == 1),

t=1:xrow; N=xrow ; trace=0;

elseif (nargin == 2),

N=xrow ; trace=0;

elseif (nargin == 3),

trace = 0;

end;

if (N<0),

error('N must be greater than zero');

end;

[trow,tcol] = size(t);

if (xcol==0)|(xcol>2),

error('X must have one or two columns');

elseif (trow~=1),

error('T must only have one row');

elseif (2^nextpow2(N)~=N),

fprintf('For a faster computation, N should be a power of two\n');

end;

tfr= zeros (N,tcol);

if trace, disp('Wigner-Ville distribution'); end;

for icol=1:tcol,

ti= t(icol); taumax=min([ti-1,xrow-ti,round(N/2)-1]);

tau=-taumax:taumax; indices= rem(N+tau,N)+1;

tfr(indices,icol) = x(ti+tau,1) .* conj(x(ti-tau,xcol));

tau=round(N/2);

if (ti<=xrow-tau)&(ti>=tau+1),

tfr(tau+1,icol) = 0.5 * (x(ti+tau,1) * conj(x(ti-tau,xcol)) + ...

x(ti-tau,1) * conj(x(ti+tau,xcol))) ;

end;

if trace, disprog(icol,tcol,10); end;

end;

tfr= fft(tfr);

if (xcol==1), tfr=real(tfr); end ;

if (nargout<=1),

tfrqview(tfr,x,t,'tfrwv');

elseif (nargout==3),

f=(0.5*(0:N-1)/N)';

end;

matlab中的tfrwv函数,求助,关于时频分布的相关推荐

  1. matlab中设置拟合初值,matlab中的nlinfit函数时,参数需要回归系数的初值,如何确定?...

    matlab中的nlinfit函数时,参数需要回归系数的初值,如何确定? 2018-4-4来自ip:11.11.16.15的网友咨询 浏览量:142 问题补充: matlab中的nlinfit函数时, ...

  2. Matlab:Matlab中常用的函数、案例详细攻略

    Matlab:Matlab中常用的函数.案例详细攻略 目录 常用函数 1.与文件相关 2.MATLAB GUI不同控件函数间变量传递方法 常用函数 Matlab中的bwmorph函数解释 bwmorp ...

  3. matlab fopen函数的用法,matlab中关于fread函数的用法

    公告: 为响应国家净网行动,部分内容已经删除,感谢读者理解. 话题:matlab中关于fread函数的用法 问题详情:用fread打开一个时,需要不需要把开放在某个特回答:必须在Matlab可以搜索的 ...

  4. MATLAB中如何忽略函数中前几个不需要的返回值而只取需要的返回值,例如:只取函数第二个返回值,而忽略第一个返回值

    1 致谢 感谢网友honglei.chen的回答, 原文链接如下: https://www.ilovematlab.cn/thread-203269-1-1.html 2 前言 今天在学习神经网络算法 ...

  5. matlab中应用surf函数画球形物体的三维坐标变换,从球坐标系转换到笛卡尔坐标系

    在Matlab中采用surf函数画三维图时,该函数使用笛卡尔坐标系绘制图形,因此在某些球形图案的绘制中,直接使用(theta,phi,z)参数无法得到球形图案,需要将图案对应的点从球坐标转变为笛卡尔坐 ...

  6. rectpuls函数 matlab,Matlab中的rectpuls函数解析

    Matlab中的rectpuls函数解析 Matlab中的rectpuls函数解析 1.先看Matlab中的解释: This MATLAB function returns a continuous, ...

  7. matlab 子函数怎么写,matlab中怎么写函数

    1.matlab怎么写函数文件~ 1.首先在电脑中打开baimatlab软件. 2.在打开的页面中点击"du主页"栏目下的"新建"按钮.zhi 3.然后在打开的 ...

  8. matlab计算两向量的乘积,matlab中两个函数相乘

    变量名最多不超过63个字符; ? 变量名区分大小写; ? Matlab提供的标准函数名以及命令名必须用小写字母; ? 变量名中不能包含空格.标点.运算符. 1.变量及其...... 中的元素; (2) ...

  9. matlab中匿名(Anonymous)函数及bsxfun函数

    一.匿名函数/Anonymous Function 匿名函数matlab解释: FUNHANDLE = @FUNCTION_NAME returns a handle to the named fun ...

最新文章

  1. CSP认证201403-2窗口[C++题解]:模拟、结构体
  2. python的map怎么用_python中的map怎么使用
  3. 信息学奥赛一本通(1203:扩号匹配问题)
  4. Flex4之皮肤定制
  5. 解决java和.NET互相操作memcache差异问题
  6. php5 mysql怎样下载,PHP5操作MySQL数据库(5)
  7. Java 8 特性 – 终极手册
  8. 英语总结系列(二十二):Baby偶遇GCT
  9. [C#.Tips]也来谈谈接口欺诈
  10. 操作系统 第一部分 操作系统的基本概念
  11. qt designer 手册翻译
  12. python词云词频分析_Python词云(词频统计,掩膜显示)
  13. 国内大多数网站的密码在 post 传输过程中都是明文的,这正常吗?
  14. windows C/C++ 内核对象、事件对象、信号量
  15. 今天女神打了个电话让我去修电脑,无数次戳中笑点
  16. 1.1 win10下wget的安装
  17. QQ浏览器赵俊:解读腾讯扶持HTM5游戏政策
  18. 获取SSL证书private key私钥文件的步骤
  19. 如何压缩视频(不改变视频清晰度2.1G→123M)
  20. 信息安全系统设计基础第十四周学习总结

热门文章

  1. 在Ubuntu上安装SAP Cloud Connector的一些错误
  2. SAP S/4HANA的扩展字段的渲染逻辑
  3. what happened after a template is selected in Create with template button
  4. Application log handling when maintaining product sales area data COM_PRWB_SET_LOGSETTYPE
  5. SAP GUI security setting on local file access
  6. SAP Cloud for Customer和微信小程序的集成-原型开发示意图
  7. SAP S/4HANA是如何通过SADL框架加CDS view读取销售订单数据的
  8. SAP MES接收生产订单及工艺路线
  9. mac securecrt程序无响应_终端仿真软件SecureCRT和Xshell,让运维工作更轻松
  10. melis系统c800_一种基于Melis平台的卡拉OK系统的制作方法