Skip to content
Snippets Groups Projects
Commit 2118dc2e authored by martin-hcp's avatar martin-hcp
Browse files

added struct2array.m

fixes #58
parent a2b2d6b8
No related branches found
No related tags found
No related merge requests found
function a = struct2array(s)
%STRUCT2ARRAY Convert structure with doubles to an array.
% Author(s): R. Losada
% Copyright 1988-2013 The MathWorks, Inc.
narginchk(1,1);
% Convert structure to cell
c = struct2cell(s);
% Construct an array
a = [c{:}];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment