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

4 次查看(过去 30 天)
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

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-12-19
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 ?

类别

Help CenterFile Exchange 中查找有关 Data Type Identification 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by