Discontinuous scatter plot -- when data is not discontinuous

5 ビュー (過去 30 日間)
Brishna
Brishna 2012 年 5 月 15 日
I have been plotting very simple variables with matlab and so far two of my graphs have been discontinuous. I am not sure why as I get no error. When i graph the same set of data on excel- the graphs look fine, but on mathlab there is a very large gap.
i am not sure what I am doing wrong as I have several scatter plots that turned out just fine.
matlab noob.

回答 (2 件)

Brishna
Brishna 2012 年 5 月 15 日
>> scatter(B8V1N,b8V1R,'DisplayName','b8V1R vs B8V1N','XDataSource','B8V1N','YDataSource','b8V1R');figure(gcf)
>> scatter(B8V1N,b8V1R,'DisplayName','b8V1R vs B8V1N','XDataSource','B8V1N',

Edward
Edward 2012 年 5 月 15 日
If you just want a simple scatter plot, try:
plot(B8V1N,b8V1R,'+')
assuming these are your two sets of coordinates.
eg.
plot([1 2 3],[2 4 6],'+')
  2 件のコメント
Brishna
Brishna 2012 年 5 月 15 日
still discontinuous. I thought it might be my data, but i just did a quick scatter plot on excel and it looks fine.
Edward
Edward 2012 年 5 月 17 日
what exactly do you mean by discontinuous?
Are some data points missing?

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

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by