Structure


Hello,
I have been trying to create a structure in Compose using the code below. It calls the data in the attached .mat file. Compose crashes either when I run the code or when I try to open BSD.Data file. When this error happens, I need to restart compose. Could you please let me know what the reason could be? This is a code I used in MATLAB 2016a before; I am trying to apply it in Compose.
clear all; close all; clc;
load('bb.mat');
BSD.NumSims = size(TEMP_DATA,2);
for i = 1:BSD.NumSims
temp=size(TEMP_DATA{1,i});
if temp(1) == 0
BSD.NumSims = i-1;
break;
end
end
BSD.Data = cell(BSD.NumSims,1);
for i = 1:BSD.NumSims
BSD.Data{i} = struct();
BSD.Data{i}.FilenameChar=TEMP_DATA{1,i};
end
Thank you
Berker