Export consol output to workspace

I have a console application (linux) that prints some hexadecimal values and quits. I want to import the output of the application to workspace and plot versus time. How can I do this ?

댓글 수: 6

Walter Roberson
Walter Roberson 2011년 12월 10일
It matters for this purpose that you want to be able to do this repeatedly, as you described in your near-duplicate of this question, http://www.mathworks.com/matlabcentral/answers/23533-embeding-c-code-to-matlab
Yigit
Yigit 2011년 12월 10일
Thank you for this productive reply and brilliant solution.
Walter Roberson
Walter Roberson 2011년 12월 10일
system() is an appropriate solution for the question as phrased here, but is not appropriate for what you are trying to do in the larger context.
Yigit
Yigit 2011년 12월 10일
system('myapp') returns what I want. I can make a for loop for system('myapp') but have no idea where to start plotting versus time.
Walter Roberson
Walter Roberson 2011년 12월 13일
In your other posting, you asked for advice, but here you are sarcastic towards those who offer you advice. Your response is not one that would tend to incline volunteers to spend time offering you the benefit of their experience.
Jan
Jan 2011년 12월 13일
@Walter: You have posted thousands of productive replies and brilliant solutions in this forum. How can a fact be sarcastic?

댓글을 달려면 로그인하십시오.

 채택된 답변

Jan
Jan 2011년 12월 10일

0 개 추천

The system command can catch the output of an external program as string, when both output arguments are caught.

댓글 수: 2

Yigit
Yigit 2011년 12월 10일
Any way to import the console output to workspace ?
Jan
Jan 2011년 12월 13일
What exactly does "import to workspace" mean? Can you post an example?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2011년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by