How to plot with no line

9 次查看(过去 30 天)
Khairul Afifi
Khairul Afifi 2015-2-2
I wish to plot a graph with no line so I could identify the gap. It would look like similar to figure below where there is a gap since there are missing data. Hope, someone can provide information by using the toolbar in the figure section in Figure Matlab.
  1 个评论
Jan
Jan 2015-2-2
The question is not clear. What is "a plot with no line"?

请先登录,再进行评论。

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2015-2-2
编辑:Azzi Abdelmalek 2015-2-2
scatter(x,y)
%or
plot(x,y,'o')
  4 个评论
Khairul Afifi
Khairul Afifi 2015-2-3
编辑:Khairul Afifi 2015-2-3
Here is the code, I hope you can provide infomation on how to plot with no line so I can identify the missing data.
masaexcel=xlsread('GAN_2013a.csv','A1:A480234');
masamatlab=x2mdate(masaexcel);
data=xlsread('GAN_2013a.csv');
mag=data(:,6);
figure, plot (masamatlab,mag);
datetick('x','dd-mmm-yyyy','keepticks');
Prabin Pandit
Prabin Pandit 2020-5-8
Here is the code for ploting x vs.y asix with red color with no line .
plot(x,y,"r*")

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by