Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Showing Matlab output command on Visual Studio using Matlab Engine

1 visualización (últimos 30 días)
Hg
Hg el 2 de Jun. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I use Matlab engine to run below matlab script on Visual Studio.
% test.m
for i=1:30
fprintf('i = %d\n', i);
end
How can I show the output continuously on Visual Studio?
//engdemo.cpp
#define BUFSIZE 256
int main()
{
// ...
Engine *ep;
char buffer[BUFSIZE+1];
buffer[BUFSIZE] = '\0';
engOutputBuffer(ep, buffer, BUFSIZE);
engEvalString(ep, "test");
while (1) {
printf("%s", buffer); // ???
}
// ...
}

Respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by