How do I read a large list of X,Y co-ordinates from Notepad and plot a graph in Matlab ?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello all, I have a large list of points (about 16,000) in Notepad with X and Y co-ordinates. I want to read the list and plot different graphs on the same X and Y axes (i.e. the X axis is the same). How can I read the list in Matlab and plot the graphs based, with different colours ?
Thank You
0 commentaires
Réponses (1)
Azzi Abdelmalek
le 17 Avr 2014
data=dlmread('yourfile.txt');
x=data(:,1);
y=data(:,2);
plot(x,y)
1 commentaire
Stelios Fanourakis
le 2 Mai 2018
@Azzi That's nice. But what happens if txt files contains fractional numbers, negative integers or zeros. I cannot use I(x,y), where I is my image to imshow my image with x,y values as coordinators
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!