Store and read MAT-file as embedded file in an Excel spreadsheet
Show older comments
Manually, I can insert a MAT-file in an Excel sheet and store the MAT-file by storing the Excel sheet. I can also load the MAT-file to the MATLAB workspace by double-clicking the symbol of the embedded file in Excel.
Is there a possibility to programatically store and load a MAT-file which is embedded in an XLS file?
2 Comments
Jiro Doke
on 1 Feb 2011
I'm not sure I understand your question. What do you mean by "embedded"? There is no way to embed a mat file (a physical file) inside an Excel file, like you would embed an image. You can insert the contents of a mat file (or a matrix) in an Excel file. Is that what you mean?
Staffan
on 1 Feb 2011
Accepted Answer
More Answers (1)
Siddharth Shankar
on 1 Feb 2011
0 votes
If you are familiar with C++, then you could consider using the MAT-File API. You could use these functions within a MEX file to:
1. Return the value of a variable in the MAT file.
2. Modify the value of a variable in the MAT file.
This will get you started. Having done this, you will then need to work either with Spreadsheet Link EX or MATLAB Builder EX to interface with this MEX file.
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!