Filter löschen
Filter löschen

Start date and end date uipicker = Having issue to plot it on UI Axes using excel data of particular selected start and end date

2 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Voss
Voss am 12 Mär. 2024
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 Kommentare
Aditya
Aditya am 19 Mär. 2024
Yes i got your point . I have attached my application with excel file and a screenshot. When i select 2 march to 6 march for an eg as shown in screenshot. It is plotting a total of 55-60 data the rest data is not being plotted.Even if i select direclty without the ui date picker it is not plotting all the data. So thats my issue did u get it.????????
Voss
Voss am 19 Mär. 2024
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by