Borrar filtros
Borrar filtros

Calling MATLAB and running m files from Excel VBA macro

2 visualizaciones (últimos 30 días)
Surae
Surae el 19 de Jul. de 2011
Comentada: Ali Motagamwala el 1 de Mayo de 2020
I want to ask about calling MATLAB and executing '.m' files using Excel VBA. I have searched about this, but I couldn't find the right solution yet. Do you have any idea how I should write VBA macros to do these?
- MATLAB version: R2008b
- m file: f_ann.m
Thanks a lot in advance for your time and reading my question.

Respuestas (2)

Fangjun Jiang
Fangjun Jiang el 19 de Jul. de 2011
Please refer to this example

Chirag Gupta
Chirag Gupta el 19 de Jul. de 2011
You can also achieve the same using MATLAB as a COM server. Please see sample code below:
VBA is very similar.

Categorías

Más información sobre Data Export to MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by