why does matlab seperate my column of identifiers and row of column headers from the data? what function puts them back together?i have created a new column of data that needs to be put together with the original data, how do i attach that?
Show older comments
what function will recombine my dataset when matlab automatically seperates my id column and row headers from the data
2 Comments
Walter Roberson
on 14 May 2013
Edited: Walter Roberson
on 14 May 2013
How are you reading the data in? Are your headers text strings? Is your data numeric ? When you say you need to put them back together, then are you wanting to produce a text array or a numeric array?
john borsellino
on 15 May 2013
Accepted Answer
More Answers (1)
Image Analyst
on 15 May 2013
0 votes
Does it look all separated when you open it up in Excel? If so, then you wrote out the workbook using strings in xlswrite() instead of cells. If the string is inside a cell, then the whole string will be in one Excel cell. If you just used xlswrite to write out strings, then it will put each character into its own cell in Excel. So tell me (1) did you write out the workbook with xlswrite(), and if so, (2) do you have one character per Excel cell?
4 Comments
john borsellino
on 15 May 2013
john borsellino
on 15 May 2013
Image Analyst
on 16 May 2013
Upload your workbook if you want us to take a look at it.. http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
john borsellino
on 16 May 2013
Categories
Find more on Spreadsheets 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!