Ignore:
Timestamp:
May 16, 2007, 1:27:15 PM (17 years ago)
Author:
dkearney
Message:

added the rpmxFlush function to flush matlab's buffers on demand.
this is used in the progress function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matlab/RpMatlabInterface.cc

    r115 r737  
    55 * ======================================================================
    66 *  AUTHOR:  Derrick Kearney, Purdue University
    7  *  Copyright (c) 2004-2005  Purdue Research Foundation
     7 *  Copyright (c) 2004-2007  Purdue Research Foundation
    88 *
    99 *  See the file "license.terms" for information on usage and
     
    7272    return path;
    7373}
     74
     75void
     76freeStringInput (void* ptr) {
     77    if (ptr != NULL) {
     78        mxFree(ptr);
     79    }
     80    ptr = NULL;
     81}
     82
     83void
     84rpmxFlush() {
     85    mxArray * emptyStr = mxCreateString("");
     86    mexCallMATLAB(0,0,1,&emptyStr,"fprintf");
     87}
     88
Note: See TracChangeset for help on using the changeset viewer.