POD - Proper Orthogonal Decomposition (Wrapper)

版本 2.0.1 (4.0 KB) 作者: Fernando Zigunov
By Fernando Zigunov, 2019 [U, S, V] = POD(X) returns the proper orthogonal decomposition
2.0K 次下载
更新时间 2021/4/13

查看许可证

=====
This function is just a nice wrapper for Matlab's built-in SVD function, which
only operates in 2D data sets. The wrapper just reshapes the matrices
before and after applying SVD such that the input series X can be
n-dimensional and ensures the output modes U are also n-dimensional.
=====

%POD has several names (POD, SVD, PCA, ...) and is a mathematical tool that
%highlights the principal modes of a random series of variables (i.e.,
%financial measurements, fluid flow fields, structural vibrations, neuron
%firing patterns, video frames, and basically anything imaginable!)

%The POD tool is extremely useful in data analysis to identify the most
%energetic modes of a complex system by simply performing measurements when
%its operating. (But if you're already here you already know all of this.)

%============Inputs:=============
%X - Time series or snapshots to be analyzed. Can be a n-dimensional matrix
%(n>=2). First dimension is time/snapshot, and all other dimensions are
%conserved for output.

%============Outputs:=============
%U - Mode matrix, has the same size of X. First dimension of X was
%"time/snapshot", therefore first dimension of U will be "mode". Modes are
%automatically organized from most energetic U(1,:,:...) to least
%energetic.

%S - Mode eigenvalues. S.^2 gives the mode energies. S is a diagonal
%matrix, so returns just the vector S to save one line of post-processing.

%V - Mode time-series or snapshot coefficients - V contains the
%contribution of each mode to a specific snapshot of X. U*S*V gives back X
%(given U and X are reshaped into 2D matrices again).

引用格式

Fernando Zigunov (2024). POD - Proper Orthogonal Decomposition (Wrapper) (https://www.mathworks.com/matlabcentral/fileexchange/72022-pod-proper-orthogonal-decomposition-wrapper), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrix Decomposition 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
2.0.1

For some reason Matlab Exchange is not updating the thumbnail

2.0.0

Updated bug when the number of sensors was smaller than the number of snapshots.
Included example of usage with a solution of the wave equation for learning purposes.

1.0.1

Updated description

1.0.0