User`s manual

4 Calling MATLAB from C and Fortran Programs
4-10
/*
* We're done! Free memory, close MATLAB engine and exit.
*/
printf("Done!\n");
mxDestroyArray(result);
engClose(ep);
return EXIT_SUCCESS;
}
The first part of this program launches MATLAB and sends it data. MATLAB
then analyzes the data and plots the results.
The program then continues with
Press Return to continue
Pressing Return continues the program.
Done for Part I.
Enter a MATLAB command to evaluate. This command should
create a variable X. This program will then determine
what kind of variable you created.
For example: X = 1:5