Hi .
I am using cygwin for linux interface in windows.Actually I want this.I have a matlab program which produces some files.Those files are needed by another C++ program to produce the final result.How can I do the whole proces through shell programming in a single file run in cygwin?
Thanks,
pd
I can run matlab from command line by using command matlab in xterm(in cygwin).But it only takes that doesn't take any futher arguments e.g. the matlab file name.So how do I run the matlab file directly?
If matlab it self can't be driven from the command line Then what will U use as an editor for the matlab files?
I think that you can do this with a bash or bat script (not relay sure) If U need to execute an m file for instance, in explorer go to tools->folder options->file types; search for m -files and see what and how it is executed, if it can only be opened by meditor U can't run from eny shell not just cygwin, if there is an option to execute it write the parameters and make an appropriate script that would execute the appropriate file.
sorry I don't have matlab installed at the moment and can't verify this it's only an idea
Added after 10 minutes:
And by rereading your post I'd have to say that matlab can't be run from a shell directly, but what U can do is compile your m files to appropriate executables (exe on win and elf (no extension) on unix systems) by using the matlab compiler mcc (matlab comes with a free c/c++ compiler called lcc) U need to have the matlab compiler and assosiated packages installed tho.
And now you can simply execute the compiled executables if you had a file1.m after compiling it (mcc -m file1.m) you can run file1.exe
I hope this helps