⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmtx.m

📁 一种新的时频分析方法的matlab源程序。
💻 M
字号:
function wa=frmtx(str,n,n_x)

% The function FRMTX makes n vectors of data to form a matrix.
% Data is saved in files.
% 
% FRMTX loads n 1-D files, each containing one vector
% which is dimensioned as n_x and which names start with 'str'.
%
% Example: R1,...,R8 are 8 vectors of 1024 points in c:\1boil,
% then z=frmtx('R',8,1024) will return the matrix z(1024,8) wanted.
% Here r1 is different R1, take care the case of names. 
% The name-numbering must begin from 1, i.e., R1.
% This creates the input for ro2xy.cpp.
%
% Calling sequence-
% z=frmtx(str,n,n_x)
%
% Input-
%	str	- characters, that represent a common part of vector names
%	n	- number, that represents a numeric part of a vector name
%	n_x	- number, that represents a number of vectors
% Output-
%	wa	- matrix wa(n_x,n) of n input vectors in column form	
 
% Z. Shen (Caltech)		March 1997 Initial

wa=zeros(n_x,n);
for i=1:n;
   s2=[str num2str(i)];
   eval(['load ' s2]);
   eval(['x=' s2 ';']);
   wa(:,i)=x;
   eval(['clear ' s2]);
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -