How to properly import a dataset including characters and numbers?
Show older comments
Hello all, I am in the process of importing an xls based data input file. The data has several columns- some of them include an exponential digit, expressed with an "e". A sample of the dataset is shown below:
.49 .159 5.16e-04 7.42e+02 .155
.. etc
I tend to use the "import data" function, and automatically had it generate a script. However, upon seeing the e and + characters, matlab imports that column to be a cell via the cellvectors() command.
As a result I have a combination of data() files and cellvectors() files- with these data types, I unfortunately cannot plot all of the data output together.
Can anybody help me in a way to enable the data importing so it can properly handle exponential files? (Or if there is no other way, is there a way to "convert" the cell file with the characters as a float number that can be plotted with the other number values?)
Thanks in advance for the help.
Accepted Answer
More Answers (0)
Categories
Find more on Downloads in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!