Plotting multi valued data properly

2 ビュー (過去 30 日間)
Niles Martinsen
Niles Martinsen 2012 年 7 月 30 日
Hi
Please take a look at my dataset here: http://peecee.dk/upload/view/377379
It can be plotted using the following
clear all
start = load('example.txt');
figure(1)
plot(start(:, 1), start(:, 2),'.')
As seen, the data is multivalued, and it forms an arc. I wish to connect the data points by a line, however when I try that, then the result is not an arc, but a web.
Is there a way to plot this properly in MatLAB?
Best, Niles.

回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 7 月 30 日
I won't download the data set, but you could likely sort it (or sortrows) it first so that the connected points are in sorted order.
  1 件のコメント
Niles Martinsen
Niles Martinsen 2012 年 7 月 30 日
Hi
Thanks, however the problem is that some data points have the same x-value, so sorting it wont help. I tried it out however.
PS: The upload-service is safe and reliable. I thought about posting the data manually, but it is too large.
Best, Niles.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by