I have generated several track files through TrackMate function "export tracks to XML file", and I can import them separately into Matlab to analyze the MSD, like: file_path_tracks = '1_Tracks.xml'; tracks = importTrackMateTracks(file_path_tracks);
However, to generate a reasonable mean MSD, I need to combine all the tracks. I have tried the function of “merge a trackmate file” to merge all the track files and then export one combined track into Matlab. It turns out matlab have troubles to recognize the tracks and generate the error:
Dot indexing is not supported for variables of this type. Error in importTrackMateTracks (line 121) t = str2double(detectionNode.getAttribute('t'));
I wonder is there a way from either trackmate or matlab to enable me to combine multiple tracks? I’m a total outsider to matlab. I would very appreciated if you can provide me a code, which I can combine to the msdanalyzer directly.