Info
This question is closed. Reopen it to edit or answer.
Showing Matlab output command on Visual Studio using Matlab Engine
1 view (last 30 days)
Show older comments
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); // ???
}
// ...
}
0 Comments
Answers (0)
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!