How to Debug Matlab & Excel at the same time ?

3 visualizaciones (últimos 30 días)
alexandre bard
alexandre bard el 30 de Mzo. de 2015
Respondida: alexandre bard el 31 de Mzo. de 2015
Hi ! I'm currently using Matlab and Excel together with Matlab Builder Ex.
I have some questions : is there a way to debug both Matlab & Excel codes at the same time ? I mean can we use the link between the two codes and see where the bug is happening in the process ?
For example, we compile everything and if there's a bug, either in the excel code or the matlab code, we can pinpoint it directly in excel or in matlab.
And if it's possible, is there a way to see the process of the code and the moments when it passes from excel to matlab and from matlab to excel ?
Thanks in advance for your answers
Alexandre.

Respuestas (2)

Titus Edelhofer
Titus Edelhofer el 30 de Mzo. de 2015
Hi Alexendre,
really debugging the compiled code will not work. An easy way to find out "who to blame" is to add a "save" command at the beginning of your MATLAB function, something like
if isdeployed
save('C:\temp\inputFromExcel.mat');
end
Then run your code from Excel, and take a look (in MATLAB) at the variables in the generated .mat file. Debug the code in MATLAB using these datat, and see what the results are ...
Titus

alexandre bard
alexandre bard el 31 de Mzo. de 2015
Thanks Titus. I'll try this as soon as I can.
Thanks a lot for the answer.

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by