Produce points out of csv dataset in matlab -


i've got csv file this:

title, longitude, latitude photo1, 77.94, 20.665 photo2, 62.508, 36.548 photo3, 39.64, 52.547 photo4, 39.6435, 52.77 photo5, 70.642, 20.547 

longitude , latitude coordinates each photo taken. now, need produce points out of file , cluster them different algorithms.

i tried this:

t = readtable('testdata.csv','format','%s%f%f')  x = t(:, 2); y = t(:, 3);  lon=[x,0]; lat=[0,y];  data = [lon lat]; 

using lon, lat in scatter function, seems i'm wrong. if me, great. sorry silly question, i'm new matlab.

the scatter function expects 2 vectors point coordinates. thus, think need is:

scatter(x, y); 

where x , y defined in question.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -