0001 function [xp,is_image] = dsAll2mdd(data,varargin) 0002 0003 if ~isfield(data,'plot_files') % Standard DynaSim data structure 0004 0005 % Check inputs 0006 data=dsCheckData(data, varargin{:}); 0007 % note: calling dsCheckData() at beginning enables analysis/plotting functions to 0008 % accept data matrix [time x cells] in addition to DynaSim data structure. 0009 0010 0011 % Convert input data to MDD 0012 xp = ds2mdd(data); 0013 is_image = 0; 0014 else % Structure of links to plots 0015 0016 % Convert input data to MDD 0017 data_img=data; 0018 xp = dsImg2mdd(data_img); 0019 0020 is_image = 1; 0021 0022 end