Hi, i hope all of you have a wonderful day, i have the matlab R2019a, and i want a simply thing, put the name of the days every five days or seven days to dont overlap the names of the days, because i can't see what day it is. I think is a very simple thing , but i can't find how to do it. i want to find the way to is easy to see the names
Thanks in advance..
Ana S
This is my code:
clear;clc;numData = xlsread('enerosolar.xlsx','EneDic')Dia = numData(:,1);Rad = numData(:,2);figure; bar(Dia,'b')xlabel('Día de Julio 2014')ylabel('Irradiación Solar Global [KWh/m^2]');xticks(1:1:length(Rad)) % This will set how many ticks you want on the x-axis. Here, there should be 48 ticks being generated. One for each piece of data you have.
xtickangle(90) % This will rotate the label so that the labels will not overlap with one another. This is in degrees.
xlim([0:5:31])% perc = hline(4.43,'r', 'Días parcialmente nublados'); hold on
Best Answer