i have problem . how to i set the x axis into hour. i have 10080 data and each one represents one minute of data. i want to represents x axis with 24 hour, how can I make like that
John Williams answered .
2025-11-20
xtickat = 0:60:length(YourData)-1; %every hour from 00:00 set(gca, 'XTick', xtickat, 'XTickLabel', cellstr( num2str( mod(round(xtickat .' ./ 60),24) ) ) )