fvec2cell.m
来自「轨迹聚类工具箱及其相关说明和文章(台风路径分类等)。如有问题可与wyljess@」· M 代码 · 共 23 行
M
23 行
function trajs = fvec2cell(y)
%FVec2CELL Convert curves in feature vector format to Cell format
% TRAJS = FVec2CELL(Y) converts the n feature vectors in the n-by-m-by-D
% matrix y into a cell array of trajectories.
%
% Scott J Gaffney 06 June 2002
% Department of Information and Computer Science
% University of California, Irvine.
%
PROGNAME = 'FVec2cell';
if (~nargin)
try; help(PROGNAME); catch; end
return;
end
[n,m,D] = size(y);
for i=1:n
trajs{i,1} = permute(y(i,:,:),[2 3 1]);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?