How can I upload a mixed data file where I can identify cell strings as well as numbers?
Show older comments
Hi I am trying to load a file that has both test and numeric values. Each row has a site name, a season, a date, and then some values. For example "AL01" "Summer" "1994" "100" "0.2" etc. I need a way to upload the file so that I can run analysis on the data based on the text identifiers. So I need to be able to ask matlab to recognize a string, and use the numbers as numbers. any help would be appreciated! thanks. .. new to matlab
Answers (1)
Azzi Abdelmalek
on 5 Mar 2013
Edited: Azzi Abdelmalek
on 5 Mar 2013
There are many ways
help textscan
help fgetl
If your file is an xls format use
xlsread
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!