concatdata

concatdata - % % % % % % % % % % % % % % % % % % % % % % %...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
% concatdata - concatenate data stored into a cell array into a single % array. only concatenate along the last dimension % Usage: % [dataarray len dims] = concatata(cellarraydata); % % Input: % cellarraydata - cell array containing data % % Output: % dataarray - single array containing all data % len - limits of each array % dim - dimension of the orginal array % % Example: % a = rand(3, 4, 3, 10); % b = rand(3, 4, 3, 4); % c = rand(3, 4, 3, 3); % [ alldata len ] = concatdata({ a b c}); % % alldata is size [ 3 4 3 17 ] % % len contains [ 0 10 14 17 ] % % to access array number i, type "alldata(len(i)+1:len(i+1)) % % Author: Arnaud Delorme, CERCO/CNRS & SCCN/INC/UCSD, 2009- % Copyright (C) Arnaud Delorme % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

concatdata - % % % % % % % % % % % % % % % % % % % % % % %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online