Real time data transfer from excel to Matlab
이전 댓글 표시
I've got a problem: i want to update real time data from an excel file to Matlab to be able to make a real time plot with Matlab. I think that I've got to work with an actxserver, but I'm not sure.
This is what i've got:
>>clear all
>>excelapp = actxserver('Excel.Application'); >>wkbk=excelapp.Workbooks; >>wdata=wkbk.Open('d:realtime_data.xls');
>>sheets=wdata.Sheets; >>sheet22=sheets.Item('dataset22'); >>range = sheet22.get('Range', 'B4', 'U4'); >>range.value
The range B4:U4 in excel will be updated every second. I’ve got the question if this is the best way to get the real time data in Matlab, or is there a better method to do this?
Thanks!
Dental
댓글 수: 1
Gerd
2011년 6월 14일
Hi Dental,
in our company we used DDE communication pretty often. Since new technology is coming up we switched to COM. I think this is an easy approch to get your "real time data" into Matlab.
Please have a look into the HELP under
Getting Started with COM
Cheers Gerd
답변 (1개)
KAUSTUBH ISADKAR
2018년 12월 28일
0 개 추천
Hii,
I am new to matlab trying to get excel sheet data to Matlab
Can you explain the code you have generated
"sheets=wdata.Sheets; >>sheet22=sheets.Item('dataset22'); >>range = sheet22.get('Range', 'B4', 'U4'); >>range.value"
I am confused with Sheet22=sheets.Item('dataset22')
what is its syntax?
thanks for your help!
regards,
Kaustubh
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!