Two graphs in the same plot, why?
Mostrar comentarios más antiguos
Hi, I imported some data from an xls file, and when plotting it , I obtain two graphs in the plot. Only one is necessary. What is the other and why does it appear?
xlsread('sunHoursInTrollhattan.xlsx')
plot(ans)
xlabel('måned')
ylabel('timer')
title('Soltimar i Trollhattan')

Thanks
Respuesta aceptada
Más respuestas (1)
Alan Stevens
el 31 de En. de 2024
0 votos
You have the hours as one plot and the minutes as the other!
Turn the data into all minutes, or all hours first.
1 comentario
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!