replace updated data with previous data in Matlab while Matlab and excel are linked.

조회 수: 1 (최근 30일)
Hi guys.
in my thesis, an engineering software runs and its result sends to an excel file (not saving). in the next step, I must send this data to Matlab and finally, Matlab creates some values for putting in engineering software. for any iteration, engineering software replaces updated data with previous data in excel. this cycle will do until Matlab optimize the objective function.
so I must create a linking between Matlab with excel while data in excel always updates and I need replace updated data with previous data in Matlab.
How can I do this?
I used "xlsread" and "actxservere" commands but in xlsread I just could get first data (before updating) and in actxserver, , I couldn't replace updated data with previous data because actxserve just can read files.
thank's

채택된 답변

Stijn Haenen
Stijn Haenen 2020년 4월 19일
Make a while loop in which matlab reads the data from the excel file every minute or every hour. You can generate a script that read the excel file with the "inport data" tool.
  댓글 수: 2
Amir amini
Amir amini 2020년 4월 19일
thank you for helpful advice but data doesn't save in excel. they just send from engineering software to excel. ( I edited question)
Stijn Haenen
Stijn Haenen 2020년 4월 20일
Maybe you can try to set an option in excel to save autonomously

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by