I don't have a running example, but if the two applications are running on the same machine you can use functionality from the user32.dll assembly to get a 'screenshot' of the Matlab program window. This allows you to get the images. Getting the data would probably involve 'digging' in the control tree of the Matlab program to find the right controls containing the data. You can use Inspect to do this:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318521(v=vs.85).aspx[
^].
If you are on .NET 4.5, you can use the UI Automation functionality:
http://msdn.microsoft.com/en-us/library/ms747327(v=vs.110).aspx[
^].
Below is an example to get the images:
[DllImport("user32.dll")]
public static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);
[DllImport("user32.dll")]
public static extern bool PrintWindow(IntPtr hWnd, IntPtr hdcBlt, int nFlags);
public static Bitmap PrintWindow(IntPtr hwnd)
{
RECT rc;
GetWindowRect(hwnd, out rc);
Bitmap bmp = new Bitmap(rc.Width, rc.Height, PixelFormat.Format32bppArgb);
Graphics gfxBmp = Graphics.FromImage(bmp);
IntPtr hdcBitmap = gfxBmp.GetHdc();
PrintWindow(hwnd, hdcBitmap, 0);
gfxBmp.ReleaseHdc(hdcBitmap);
gfxBmp.Dispose();
return bmp;
}