Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Showing Matlab output command on Visual Studio using Matlab Engine

1 回表示 (過去 30 日間)
Hg
Hg 2016 年 6 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by