Plot function adding line from last point in row to origin
Mostra commenti meno recenti
Hello,
I currently have a plot that looks like this:

and I am trying to remove the line that is connecting the last node in the row to the origin. I know this question has been asked before but I was unable to use the answers to solve my problem. I tried sorting the data and tried stating LineStyle to none but it didn't work. Here is what I have so far:
plot(transpose(x_nudged),transpose(y_nudged),'-')
x_nudged(x_nudged==0)=nan;
y_nudged(y_nudged==0)=nan;
1 Commento
Walter Roberson
il 23 Feb 2021
Remember that changing your data after you plot is not going to affect your plot.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Scatter Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!