Real time data ploting in matlab

3 visualizaciones (últimos 30 días)
RUDRAKSH
RUDRAKSH el 27 de Mayo de 2016
Respondida: KSSV el 31 de Mayo de 2016
Hello everyone
I have a nx1 matrix which i have plotted. On same plot i want to plot a real time data. Can anyone suggest a method to do it.
Regards Rudraksh
  2 comentarios
KSSV
KSSV el 27 de Mayo de 2016
Can you elaborate what do you mean by real time data?
RUDRAKSH
RUDRAKSH el 28 de Mayo de 2016
I have a matrix which i have already plotted on a figure. that plot has time on x axes and my desired variable on y axes.
Now on my HIL Simulation i want to follow that data points. Hence i will be getting a value at a defined time steps and i want to plot that data point at the same plot.

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 31 de Mayo de 2016
FileInfo = dir('YourFileWithExtention');
TimeStamp = FileInfo.date;
The above code gives information about your file. You track the TimeStamp, once the file gets updated/ new data added into it, the timestamp changes; then you can read the uploaded data and plot in MATLAB figure to the existing plot.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by