Hello Everyone,
I have a set of data where i have 3 columns. First Column has 2 variables (Alpha,Beta) and they repeat themselves in the same order 50,000 times. Second Column has data corresponding to the varables. Third Column has time stamp.
1) I want to Seperate these variables Alpha and Beta as column names with there corresponding values in those respective columns.
2) Once the data is seperated i want to use time stamp and bin or packet both alpha and beta into one varible or table using my time stamp as reference.
Attaching my sample data to this message.
I tried both unstack and findgroups function in MATLAB and could get any result. Also adding my codes.
Any help would be greatly appreciated.
A = importdata('Data.xlsx');
x1=A.data(:,1);
x2=A.data(:,2);
y=A.textdata(2:end,1);
t=table(y,x1,x2);
[agroup,engine,pedal] = findgroups(t.engine_speed,t.accelerator_pedal_position);
A = importdata('Data.xlsx');
x1=A.data(:,1);
x2=A.data(:,2);
y=A.textdata(2:end,1);
t=table(y,x1,x2);
U = unstack(t,'engine_speed','accelerator_pedal_position');