Start date and end date uipicker = Having issue to plot it on UI Axes using excel data of particular selected start and end date
1 次查看(过去 30 天)
显示 更早的评论
So i have attached my excel file and app. I am trying to plot that data in ui axes which i am not able to plot it . I have tried using uidate picker as i want to plot specific data of some specific date. Plz guide me with program how can i write it and how i can plot it in uiaxes.I am having issues using using uidate picker after even after reading its specification . I am able to plot the data using list box but it plots all the data .I want to plot it of specific selected date.Plz anyone can help me out as it is my urgent project which needs to be submitted as early as possible.
0 个评论
采纳的回答
Voss
2024-3-12
Please see the modified app attached.
In keeping with the existing design where the plot is updated when the Generate Plot button is pressed, I modified GeneratePlotButtonPushed to use the date pickers' Values and only plot data within the selected date range.
10 个评论
Voss
2024-3-19
Thanks for the updated app and data file. I am able to reproduce your screen shot. I don't agree that it is plotting 55-60 data points. I find that all the data is being plotted. To be sure of this, I put a breakpoint in GeneratePlotButtonPushed and checked the values of start_idx and end_idx (exactly as I recommended you do in a previous comment); I found start_idx is 2 and end_idx is 123 which means 123-2+1 = 122 data points are plotted, which is everything in the file (ignoring the first row of app.t, which starts with NaT and is due to a blank row in the file immediately after the column names). What makes you say only 55-60 points are plotted?
Note that the data look like three spikes because there is only data within three relatively small time ranges: 02-Mar-2024 14:06-14:11 (~5 minutes), 05-Mar-2024 09:13-09:18 (~5 minutes), and 06-Mar-2024 17:10-17:24 (~14 minutes). When plotted against a range of several days, these brief few minutes where there is data look like narrow spikes, but if you zoom in horizontally you will see all the data is there.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!