Hi all,
In many functions we have
data = dsCheckData(data, varargin{:});
% note: calling dsCheckData() at beginning enables analysis function to
% accept data matrix [time x cells] in addition to DynaSim data structure.
But I tried that in two versions of Matlab and neither worked.
In 2018b it's :
Unable to perform assignment because dot indexing is not supported for variables of
this type.
Error in dsCheckData (line 69)
data.pop1_data=data;
Error in dsCalcFR (line 69)
data = dsCheckData(data, varargin{:});
In 2017a its:
Field assignment to a non-structure array object.
Error in dsCheckData (line 69)
data.pop1_data=data;
It seems that if the data matrix is DatMat, then you need to do
dat.E_v = DatMat;
result = dsCalcFR(dat); % NOT result = dsCalcFR(DatMat);
Best,
Jingjin