简体   繁体   English

如何读取八度终端上显示的字符串信息?

[英]How to read string information displayed on Octave terminal?

A third party socket client (mex binary) is continually writing a string on my octave terminal. 第三方套接字客户端(mex二进制文件)不断在我的八度终端上写入一个字符串。 I have no idea how this mex binary is working... I would need to read (load) this string/text into an octave variable for parsing. 我不知道这个mex二进制文件是如何工作的……我需要将这个字符串/文本读取(加载)到一个八度变量中进行解析。

I tried to use scanf, fgetl(stdin) but without success. 我尝试使用scanf,fgetl(stdin),但未成功。 Can someone help on this? 有人可以帮忙吗? Thanks! 谢谢!

评估函数以获取其输出

text=evalc('out=mexfunction(input)');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM