Skip to content
Snippets Groups Projects
Commit a590afcc authored by Puchtler, Steffen's avatar Puchtler, Steffen
Browse files

Merge branch '58-struct2array-removed-in-newer-matlab-versions' into 'master'

added struct2array.m

Closes #58

See merge request pmd_smartbearings/bearimp!19
parents 81acd718 2118dc2e
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