Real time data ploting in matlab

조회 수: 2 (최근 30일)
RUDRAKSH
RUDRAKSH 2016년 5월 27일
답변: KSSV 2016년 5월 31일
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
KSSV
KSSV 2016년 5월 27일
Can you elaborate what do you mean by real time data?
RUDRAKSH
RUDRAKSH 2016년 5월 28일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2016년 5월 31일
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.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by