Two graphs in the same plot, why?
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Alan Stevens
2024-1-31
0 个投票
You have the hours as one plot and the minutes as the other!
Turn the data into all minutes, or all hours first.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!