这篇博文和上篇博文对应:【 MATLAB 】信号处理工具箱之fft简介及案例分析

目录

ifft

Syntax

Description

案例分析

Inverse Transform of Vector

Padded Inverse Transform of Matrix

Conjugate Symmetric Vector


ifft

Inverse fast Fourier transform



Syntax

X = ifft(Y)

X = ifft(Y,n)

X = ifft(Y,n,dim)

X = ifft(___,symflag)



Description

X = ifft(Y)

X = ifft(Y) computes the inverse discrete Fourier transform of Y using a fast Fourier transform algorithm. X is the same size as Y.

  • If Y is a vector, then ifft(Y) returns the inverse transform of the vector.

  • If Y is a matrix, then ifft(Y) returns the inverse transform of each column of the matrix.

  • If Y is a multidimensional array, then ifft(Y) treats the values along the first dimension whose size does not equal 1 as vectors and returns the inverse transform of each vector.

本想翻译一下的,但是手册里面的英文描述的太清晰了,单词也很简单,所以就这样直接看吧。


X = ifft(Y,n) returns the n-point inverse Fourier transform of Y by padding Y with trailing zeros to length n.

X = ifft(Y,n,dim) returns the inverse Fourier transform along the dimension dim. For example, if Y is a matrix, then ifft(Y,n,2) returns the n-point inverse transform of each row.

X = ifft(Y,n,dim)沿维度dim返回逆傅立叶变换。 例如,如果Y是矩阵,则ifft(Y,n,2)返回每行的n点逆变换。

X = ifft(___,symflag) specifies the symmetry of Y. For example, ifft(Y,'symmetric') treats Y as conjugate symmetric.

X = ifft(___,symflag)指定Y的对称性。例如,ifft(Y,'symmetric')将Y视为共轭对称。



案例分析

Inverse Transform of Vector

% The Fourier transform and its inverse convert between data sampled in time and space and data sampled in frequency.
%
% Create a vector and compute its Fourier transform.X = [1 2 3 4 5];
Y = fft(X)
% Y = 1×5 complex
%
%   15.0000 + 0.0000i  -2.5000 + 3.4410i  -2.5000 + 0.8123i  -2.5000 - 0.8123i  -2.5000 - 3.4410i ⋯
%
% Compute the inverse transform of Y, which is the same as the original vector X.ifft(Y)
% ans = 1×5
%
%      1     2     3     4     5

结果如下:

ifft_vector

Y =

1 至 4 列

15.0000 + 0.0000i  -2.5000 + 3.4410i  -2.5000 + 0.8123i  -2.5000 - 0.8123i

5 列

-2.5000 - 3.4410i

ans =

1     2     3     4     5


Padded Inverse Transform of Matrix

clc
clear
close all
% The ifft function allows you to control the size of the transform.
%
% Create a random 3-by-5 matrix and compute the 8-point inverse Fourier transform of each row.
% Each row of the result has length 8.Y = rand(3,5)
n = 8;
X = ifft(Y,n,2)
size(X)

结果如下:

Y =

0.8147    0.9134    0.2785    0.9649    0.9572
    0.9058    0.6324    0.5469    0.1576    0.4854
    0.1270    0.0975    0.9575    0.9706    0.8003

X =

1 至 4 列

0.4911 + 0.0000i  -0.0224 + 0.2008i   0.1867 - 0.0064i  -0.0133 + 0.1312i
   0.3410 + 0.0000i   0.0945 + 0.1382i   0.1055 + 0.0593i   0.0106 + 0.0015i
   0.3691 + 0.0000i  -0.1613 + 0.2141i  -0.0038 - 0.1091i  -0.0070 - 0.0253i

5 至 8 列

0.0215 + 0.0000i  -0.0133 - 0.1312i   0.1867 + 0.0064i  -0.0224 - 0.2008i
   0.1435 + 0.0000i   0.0106 - 0.0015i   0.1055 - 0.0593i   0.0945 - 0.1382i
   0.1021 + 0.0000i  -0.0070 + 0.0253i  -0.0038 + 0.1091i  -0.1613 - 0.2141i

ans =

3     8

上面的程序是计算矩阵每一行的8点ifft,故结果是每一行的ifft有8个元素,而计算矩阵 Y 每一行的 ifft,关键语句为:

X = ifft(Y,n,2),里面的2,如果去掉2,则是对矩阵Y的每一列计算ifft,测试如下:

clc
clear
close all
% The ifft function allows you to control the size of the transform.
%
% Create a random 3-by-5 matrix and compute the 8-point inverse Fourier transform of each row.
% Each row of the result has length 8.Y = rand(3,5)
n = 8;
X = ifft(Y,n)
size(X)

Y =

0.1419    0.7922    0.0357    0.6787    0.3922
    0.4218    0.9595    0.8491    0.7577    0.6555
    0.9157    0.6557    0.9340    0.7431    0.1712

X =

1 至 4 列

0.1849 + 0.0000i   0.3009 + 0.0000i   0.2274 + 0.0000i   0.2725 + 0.0000i
   0.0550 + 0.1517i   0.1838 + 0.1668i   0.0795 + 0.1918i   0.1518 + 0.1599i
  -0.0967 + 0.0527i   0.0171 + 0.1199i  -0.1123 + 0.1061i  -0.0080 + 0.0947i
  -0.0195 - 0.0772i   0.0142 + 0.0028i  -0.0706 - 0.0417i   0.0179 - 0.0259i
   0.0795 + 0.0000i   0.0611 + 0.0000i   0.0151 + 0.0000i   0.0830 + 0.0000i
  -0.0195 + 0.0772i   0.0142 - 0.0028i  -0.0706 + 0.0417i   0.0179 + 0.0259i
  -0.0967 - 0.0527i   0.0171 - 0.1199i  -0.1123 - 0.1061i  -0.0080 - 0.0947i
   0.0550 - 0.1517i   0.1838 - 0.1668i   0.0795 - 0.1918i   0.1518 - 0.1599i

5 列

0.1524 + 0.0000i
   0.1070 + 0.0793i
   0.0276 + 0.0819i
  -0.0089 + 0.0365i
  -0.0115 + 0.0000i
  -0.0089 - 0.0365i
   0.0276 - 0.0819i
   0.1070 - 0.0793i

ans =

8     5


Conjugate Symmetric Vector

For nearly conjugate symmetric vectors, you can compute the inverse Fourier transform faster by specifying the 'symmetric' option, 
which also ensures that the output is real. Nearly conjugate symmetric data can arise when computations introduce round-off error.

Create a vector Y that is nearly conjugate symmetric and compute its inverse Fourier transform. 
Then, compute the inverse transform specifying the 'symmetric' option, which eliminates the nearly 0 imaginary parts.

对于近似共轭对称矢量,您可以通过指定“symmetric”选项来更快地计算逆傅里叶变换,这也确保了输出是真实的。 当计算引入舍入误差时,可能出现几乎共轭的对称数据。

创建几乎共轭对称的向量Y并计算其逆傅里叶变换。然后,计算指定'对称'选项的逆变换,它消除了近0虚部。

clc
clear
close all
% For nearly conjugate symmetric vectors, you can compute the inverse Fourier transform faster by specifying the 'symmetric' option,
% which also ensures that the output is real. Nearly conjugate symmetric data can arise when computations introduce round-off error.
%
% Create a vector Y that is nearly conjugate symmetric and compute its inverse Fourier transform.
% Then, compute the inverse transform specifying the 'symmetric' option, which eliminates the nearly 0 imaginary parts.Y = [1 2:4+eps(4) 4:-1:2]
% Y = 1×7
%
%     1.0000    2.0000    3.0000    4.0000    4.0000    3.0000    2.0000 ⋯X = ifft(Y)
% X = 1×7 complex
%
%    2.7143 + 0.0000i  -0.7213 + 0.0000i  -0.0440 - 0.0000i  -0.0919 + 0.0000i  -0.0919 - 0.0000i  -0.0440 + 0.0000i  -0.7213 - 0.0000i ⋯Xsym = ifft(Y,'symmetric')
% Xsym = 1×7
%
%     2.7143   -0.7213   -0.0440   -0.0919   -0.0919   -0.0440   -0.7213 ⋯

结果如下:

Y =

1.0000    2.0000    3.0000    4.0000    4.0000    3.0000    2.0000

X =

1 至 4 列

2.7143 + 0.0000i  -0.7213 + 0.0000i  -0.0440 - 0.0000i  -0.0919 + 0.0000i

5 至 7 列

-0.0919 - 0.0000i  -0.0440 + 0.0000i  -0.7213 - 0.0000i

Xsym =

2.7143   -0.7213   -0.0440   -0.0919   -0.0919   -0.0440   -0.7213

最后一个例子中用到了eps,关于eps的介绍见博文:

【 MATLAB 】eps (浮点相对精度)简介

【 MATLAB 】信号处理工具箱之 ifft 简介及案例分析相关推荐

  1. matlab ifft函数实例,【 MATLAB 】信号处理工具箱之 ifft 简介及案例分析

    目录 ifft Inverse fast Fourier transform Syntax X = ifft(Y) X = ifft(Y,n) X = ifft(Y,n,dim) X = ifft(_ ...

  2. 【 MATLAB 】信号处理工具箱之fft简介及案例分析

    目录 Syntax Description Y = fft(X) Y = fft(X,n) Y = fft(X,n,dim) Examples Noisy Signal Syntax Y = fft( ...

  3. 【 MATLAB 】信号处理工具箱之 idct 简介及案例分析

    有关idct的基础知识见博文:[ MATLAB ]逆离散余弦变换(idct)的基础知识介绍 idct 逆离散余弦变换 Syntax x = idct(y) x = idct(y,n) x = idct ...

  4. 【 MATLAB 】信号处理工具箱之 dct 简介及案例分析

    dct Discrete cosine transform Syntax y = dct(x) y = dct(x,n) y = dct(x,n,dim) y = dct(___,'Type',dct ...

  5. MATLAB信号处理工具箱函数列表分类

    **现将MATLAB信号处理工具箱函数进行分组,便于记忆查询和长期回顾.(只解释基本用途,具体用法请在help目录下查询)** Waveform Generation(波形产生) chairp: 产生 ...

  6. matlab信号处理工具箱函数列表

    现将MATLAB信号处理工具箱函数进行分组,便于记忆查询和长期回顾.(只解释基本用途,具体用法请在help目录下查询) Waveform Generation(波形产生) chairp: 产生扫频余弦 ...

  7. matlab滤波器设计工具箱带阻滤波器,用matlab信号处理工具箱进行fir滤波器设计的三种方法...

    用matlab信号处理工具箱进行fir滤波器设计的三种方法 摘 要 介绍了利用 MATLAB 信号处理工具箱进行 FIR 滤波器设计的三种方法:程序设计法. FDATool 设计法和 SPTool 设 ...

  8. matlab软件及基础实验第8单元,《MATLAB统计分析与应用:40个案例分析》程序与数据(内含彩蛋)...

    [实例简介]Matlab教材及随书光盘,超实用的好书,强烈推荐! MATLAB统计分析与应用 40个案例分析.pdf <MATLAB统计分析与应用:40个案例分析>程序与数据.rar 第1 ...

  9. Matlab信号处理工具箱

    原文地址:http://blog.sina.com.cn/s/blog_701c05820100ns24.html 滤波器设计与分析: 滤波器 分析 abs 幅度 angle 相位 filternor ...

最新文章

  1. android 横竖屏限制如何配置
  2. 一起学Hadoop——Hadoop的前世今生
  3. 设计模式 - 基本功的重要性
  4. 深入剖析微软ASP.NET Ajax中的数据绑定构架下篇之二
  5. Winform中实现ZedGraph的多条Y轴(附源码下载)
  6. 01_Struts2概述及环境搭建
  7. tools URL 收集
  8. python的运行环境是如何搭建的_教女朋友学Python运行环境搭建
  9. 了解MyBatis框架
  10. 喝酒、吸烟和喝茶三者相对而言,哪个对身体有益?哪个对身体有害?
  11. Confluence 6 Windows 中以服务方式自动重启修改运行服务的用户
  12. SpringSecurity系列(五) Spring Security 权限设计
  13. 第一次接触WebSocket遇到的坑以及感受
  14. P2770 航空路线问题
  15. 镭神智能C32 ROS Rviz使用教程
  16. 【数据分析能力是指什么?】
  17. 你真的了解ESD吗?老司机从零教学系列之学会ESD选型
  18. win10专业版和企业版的区别_win10家庭版和专业版区别
  19. UFS详细介绍---终章
  20. 微信电商小程序开发有什么好处呢

热门文章

  1. mysql字符串相加函数concat()
  2. java中graphics抽象类_Java中的抽象类
  3. mt4指标最精准组合指标_股市最赚钱的黄金指标组合:KDJ+MACD指标的配合使用,助于买在低点卖在高点!...
  4. eclipse 插件扩展新建java页面_java-Eclipse插件-弹出菜单扩展
  5. 一加7充电_夜话丨一加7超级快充明天见
  6. mysql view none,MySQL笔记之视图的使用详解
  7. SpringCloud_项目搭建以及Eureka
  8. Actor-critic强化学习方法应用于CartPole-v1
  9. 2021年春季学期-信号与系统-第八次作业参考答案-第九小题
  10. 声音信标发出白噪声和发出chirp信号的对比测距说明