How to create user input files using Matlab
6 次查看(过去 30 天)
显示 更早的评论
Hi,
I used Matlab a while ago, mainly to create plots from a set of data files. Do not have any other experiences.
Our company has a numerical simulation fortran program with we license commencially. The procedure of running our current application is like this: (1) The users create several text files with combination of numbers and texts. Usually, these files can be created from notepad in Windows. (2) run the program from window DOS. (3) The users create plot from data outputs using Excel or Matlab. Each user may have his own postprocessor.
The above seems quite old fashioned. We plan to upgrade the application to more user friendly environment. What we have in our mind is that: (1) Generate the input files using a user interface applications. (2) Run the executable from window, not from DOS anymore. (3) Plot the outputs using Matlab by building a uniform application.
I understand that step (3) is relatively easy from my own experiences. But can I license Matlab and do (1) and (2) also? I know I can use VB or C++ to do (1). But if Matlab can do (1), it will make everything simpler and nicer.
Thanks.
0 个评论
回答(2 个)
Jan
2013-7-25
Yes, Matlab can create a data file, when the data are obtained by user inputs in a GUI, and external programs can be started.
0 个评论
dpb
2013-7-25
A) There are several choices w/ Matlab -- you can build applications and create compiled apps that you can distribute which sorta' sounds like what your organization would be thinking of. You need to contact TMW sales department and discuss those issues as for actual terms and what product(s) you would need.
B) Sure, Matlab can do 1) and 2) ... you can write text files in a format that the Fortran code can use as input or, depending on how the Fortran code is written, possibly even interact w/ it directly. At a minimum you can certainly write the text input from a GUI-type environment and submit the job.
B, 2) If the Fortran is a console app, you'll still have to run it in a console window but again depending on how it's written you may (or may not) be able to capture output from it and thereby actually intereact to control its execution. But, as a minimum you can certainly dispatch a job for it after having prepared the input files and then postprocess those results using Matlab.
Again, contact TMW sales on the licensing/products info...
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!