I have a structure in a mat file that I want to load as follows,
load('simulation_000003.mat', 'variablesNotUsedInRun')
But I get the error below. The mat file contains output from a Simulink run (see comment below). Other variables in the file load fine except for variablesNotUsedInRun which invokes and crashes timeseries.m . Why is this simple load command failing?
Operands to the || and && operators must be convertible to logical scalar values.Error in tsdata.datametadata.warnAboutIsTimeFirst (line 88) if (len>0 && isTimeFirst ~= tsdata.datametadata.isTimeFirst(sizeData,len,interpretSingleRowDataAs3D))Error in timeseries.loadobj (line 499) tsdata.datametadata.warnAboutIsTimeFirst(h.isTimeFirst_,size(data),...88 if (len>0 && isTimeFirst ~= tsdata.datametadata.isTimeFirst(sizeData,len,interpretSingleRowDataAs3D)) (Note len=[] here)
Best Answer