MATLAB: How to read the numerical data of text file seperated by slash

dlmreadimport datatextscan

I am having problem while reading the txt file. Below is the structure of txt file.
I want the numerical values of X, Y , Z and Sample rate. Using import data stores all the values in one column but I want each data in seperate column. How can I get it? I also tried dlmread and testscan but was unsuccessful. Is there any functions to read the data seperated by slash(|)? It is fine for me to read the data from third line as well. I will be very thankful if anyone can help-

Best Answer

Try readtable(). Tell it to skip the first two lines.