Borrar filtros
Borrar filtros

How to read a console data

2 visualizaciones (últimos 30 días)
Bhatu
Bhatu el 22 de Abr. de 2015
Comentada: Bhatu el 22 de Abr. de 2015
Hi,
This is regarding to reading output printed on console. could you please inform me the way to implement it through m code.
Thanks & Regards, Bhatu

Respuestas (1)

Ken Atwell
Ken Atwell el 22 de Abr. de 2015
Do you mean the text created by something you run on the command line? Use the system command's second output argument:
>> [status, cmdout] = system('echo "Hello, World"', '-echo')
Hello, World
status =
0
cmdout =
Hello, World
  1 comentario
Bhatu
Bhatu el 22 de Abr. de 2015
Yes! It is similar kind of this but what exactly I want is to read run time output generated by "mdfimport" function. I have created an .exe from m code, which is printing data on console window. Data printed on console is not constant it varies for every different input file. I have to read that data & take action appropriately.

Iniciar sesión para comentar.

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by