MATLAB Answers

How to plot with repeating values in the abscissa vector?

7 views (last 30 days)
George on 13 Jul 2015
Commented: George on 13 Jul 2015
I took a bunch of readings over the course of three days and used the "now" function to timestamp each reading. Plotting that isn't good to look at, because the x values are all 7.36e+05.
I was thinking I'd change that to hours. I wanted to have the following x vector:
x = repmat(0:23,[1 numDays])
How do I make a scatter plot of my data and have that as my abscissa, without Matlab just plotting multiple points at each hour?


Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 13 Jul 2015

  1 Comment

George on 13 Jul 2015
It worked on the sin wave example. It did not transfer to my data for some reason. I'll fiddle around with it and get it to work. Thanks for the helpful tip!

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by