Thread Subject: Importing Data from Excel to MATLAB in Real Time

Subject: Importing Data from Excel to MATLAB in Real Time

From: Anindya Dutta

Date: 17 Mar, 2010 05:04:03

Message: 1 of 2

Hi,
I want to import data from an Excel file onto MATLAB in realtime. I am currently importing using a xlsread(), processing the data and then plotting it using the tools on MATLAB. Consequently, the data I see is only valid for the time at which it was imported. Is there a way to make it constantly refresh and update the data from the Excel file? (The Excel file has been setup to import data from another software, and hence updates itself every few seconds).
Would really appreciate a detailed answer, as I am not still at a beginner/intermediate stage in MATLAB use.

Thanks!

Anindya

Subject: Importing Data from Excel to MATLAB in Real Time

From: Mihir

Date: 22 Mar, 2010 14:24:05

Message: 2 of 2

Put yr matlab code in infinite for loop so it will run for as long as u want...

and whenever it runs it will read the excell file and update the data ..and plot it....


"Anindya Dutta" <seemeandsuffer@yahoo.com> wrote in message <hnpns3$m90$1@fred.mathworks.com>...
> Hi,
> I want to import data from an Excel file onto MATLAB in realtime. I am currently importing using a xlsread(), processing the data and then plotting it using the tools on MATLAB. Consequently, the data I see is only valid for the time at which it was imported. Is there a way to make it constantly refresh and update the data from the Excel file? (The Excel file has been setup to import data from another software, and hence updates itself every few seconds).
> Would really appreciate a detailed answer, as I am not still at a beginner/intermediate stage in MATLAB use.
>
> Thanks!
>
> Anindya

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
use infinite fo... Mihir Naik 22 Mar, 2010 10:29:27
import Anindya Dutta 17 Mar, 2010 01:09:04
help Anindya Dutta 17 Mar, 2010 01:09:04
excel Anindya Dutta 17 Mar, 2010 01:09:03
rssFeed for this Thread

Contact us at files@mathworks.com