Clear Filters
Clear Filters

how do i "re attach" row id column vectors(made up of words) to the numeric value columns, matlab separates my data???

4 views (last 30 days)
example of my data; column1= jim01, john18, jane43. column 2= 4.5, 3.05, 7.5. column3= 1.5,5.0,9.0... when i input the data into matlab, it separates the id column( the column with words) from the numeric data...i am making scatterplots of columns 2 & 3. i brush the graph and only get back the values...i need to get back the row id that the values represent

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 19 Dec 2013
Your data looks like
data={'jim01' 4.5 1.5; 'john18' 3.05 5.0 ;'jane43' 7.5 9.0 }
scatter(cell2mat(data(:,2)), cell2mat(data(:,3)))
What do you want with the words ?

Categories

Find more on Data Type Identification 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!