Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Changing x-axis on a plot
I have a data array that is 289 by 4 which represents the plot of data for each 5 minute period in a day, inclusive of midnight at both ends.
I have a double array (xAxis) size 289 with the numbers from 0 to 24
When I plot ( xAxis , data ) ; the xAxis of my graph is labeled 0 5 10 15 20 24 with ticks only at those positions.
I'd like the xAxis to be 0 4 8 12 16 20 and 24 with ticks at all 24 locations.
Is this possible? If so, how to I change the plot command to do it?
0 · ·