There is an AMPL API for MATLAB, described at
http://ampl.com/products/api/, that permits the activities of an AMPL session to be controlled directly by MATLAB statements. You can use the API to run AMPL interactively from the MATLAB console, though more often the API is used to write MATLAB application programs (m-files) that embed AMPL models and calls to solvers.
Also for some applications you can use a simpler approach, where you (1) have MATLAB write a file of data for AMPL, (2) execute a MATLAB command like "!ampl test.run" to start the AMPL program and give it a script file, and (3) have MATLAB read a file of results. The AMPL script file test.run must at least (a) read an AMPL model, (b) read the data file that MATLAB wrote for the model, (c) invoke a solver, and (d) write the result file for MATLAB -- though the AMPL script may do other processing as well.
Bob Fourer
am...@googlegroups.com
=======