Hi, everyone. I want to run a file .bat in matlab and take the content of this file in matlab to make graphs.How can i do it?

Hi, everyone. I want to run a file .bat in matlab and take the content of this file in matlab to make graphs.How can i do it?

 Accepted Answer

doc dos % and/or system
NB the optional second output. There's no absolute guarantee, but there's the place to start; if the underlying program in the .bat file is well-formed, then maybe you'll get the desired output back...

4 Comments

Τhis file(.bat) contents numbers..i believe i have to use the '!' but i dont know the way to do it ..
If it's not executing anything, why is it called a .bat file? (Not that the content really matters by the name but it's peculiar).
If it is simply is the input data, then just open it like any other text data file and read the contents. What, specifically, would depend on the format of the data, but try just
dat=importdata('yourfilename');
and see if magic ensues.
sorry about my imprecision. Βy the file .bat are done the calculations.My inetion is to run the .bat file from matlab and take the results which are numbers in matlab(tables).
OK, makes more sense, indeed! :)
Did the result with the optional return value work in this case I gather maybe?

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 22 Apr 2015

Commented:

dpb
on 27 Apr 2015

Community Treasure Hunt

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

Start Hunting!