How to Convert concatenated data within a cell within a structure to an array?
I am surrently developing a GUI that autmates some of the more frustrating data processing I do. I have it working, but I still need to break down my data into separate files and I am trying to further automatate it. I had to do this since some of the information I need wasn’t easliy available until i found it tagged in another structure, but I am having trouble pulling that data and then eventually creating an array form it.
I have a internal program that outputs data into its own mat files and I am trying to break down that data into easier peices for data processing.
For example I want to pull velocity from this variable that is created and looks like this. The tags and name lengths do change often.
sensors.single{1, 5}.location_info = ‘EventName:HEK144501o_ES:EventID:PYYI1040:Velocity:67 KPH:Location:PL:RTTF:NF’
I’ve tried some varaitations of code searching with strcmp or find or even cellfun and the below function I found and use other places in this code but nothing I try can pull this data. Honestly I used to work a lot with matlab but other than simple modifications, I haven’t had to build anything from scratch in a long time and I feel like I stuck trying to manipulate data using commands not valid for the format. Any help would be appreciated.
cellfind = @(string)(@(cell_contents)(strcmp(string,cell_contents)));I am surrently developing a GUI that autmates some of the more frustrating data processing I do. I have it working, but I still need to break down my data into separate files and I am trying to further automatate it. I had to do this since some of the information I need wasn’t easliy available until i found it tagged in another structure, but I am having trouble pulling that data and then eventually creating an array form it.
I have a internal program that outputs data into its own mat files and I am trying to break down that data into easier peices for data processing.
For example I want to pull velocity from this variable that is created and looks like this. The tags and name lengths do change often.
sensors.single{1, 5}.location_info = ‘EventName:HEK144501o_ES:EventID:PYYI1040:Velocity:67 KPH:Location:PL:RTTF:NF’
I’ve tried some varaitations of code searching with strcmp or find or even cellfun and the below function I found and use other places in this code but nothing I try can pull this data. Honestly I used to work a lot with matlab but other than simple modifications, I haven’t had to build anything from scratch in a long time and I feel like I stuck trying to manipulate data using commands not valid for the format. Any help would be appreciated.
cellfind = @(string)(@(cell_contents)(strcmp(string,cell_contents))); I am surrently developing a GUI that autmates some of the more frustrating data processing I do. I have it working, but I still need to break down my data into separate files and I am trying to further automatate it. I had to do this since some of the information I need wasn’t easliy available until i found it tagged in another structure, but I am having trouble pulling that data and then eventually creating an array form it.
I have a internal program that outputs data into its own mat files and I am trying to break down that data into easier peices for data processing.
For example I want to pull velocity from this variable that is created and looks like this. The tags and name lengths do change often.
sensors.single{1, 5}.location_info = ‘EventName:HEK144501o_ES:EventID:PYYI1040:Velocity:67 KPH:Location:PL:RTTF:NF’
I’ve tried some varaitations of code searching with strcmp or find or even cellfun and the below function I found and use other places in this code but nothing I try can pull this data. Honestly I used to work a lot with matlab but other than simple modifications, I haven’t had to build anything from scratch in a long time and I feel like I stuck trying to manipulate data using commands not valid for the format. Any help would be appreciated.
cellfind = @(string)(@(cell_contents)(strcmp(string,cell_contents))); cell, array MATLAB Answers — New Questions