Sunday, November 13, 2011

Illusion

If your brain works normally

This is another example of an amazing illusion!!! The last sentence is so true.

If your eyes follow the movement of the rotating pink dot, the dots will remain only one color, pink.

However if you stare at the black '+ ' in the center, the moving dot turns to green.
Now, concentrate on the black ' + ' in the center of the picture. After a short period, all the pink dots will slowly disappear, and you will see only a single green dot rotating.

It's amazing how our brain works. There really is no green dot, and the pink ones really don't disappear. This should be proof enough, we don't always see what we think we see.

Friday, November 04, 2011

Eclipse & Tomcat - Create a Webapp - Hello World Tutorial





Untitled Document







Directory Structure under: C:\xampp\tomcat\bin\webapps\mytomcat-eclipse-helloworld-scratch



List of Directories:



\WEB-INF

\WEB-INF\lib

\WEB-INF\src

\WEB-INF\src\java

\WEB-INF\src\myeclipse

\WEB-INF\classes

\pages

List of files:



\index.jsp

\pages

\pages\myhelloworld_bean.jsp

\pages\myhelloworld_jstl.jsp

\WEB-INF\web.xml

\WEB-INF\lib\jstl.jar - copy this file.

\WEB-INF\lib\standard.jar - copy this file.

\WEB-INF\src\myeclipse\MyHelloWorldBean.java

\WEB-INF\src\myeclipse\MyHelloWorldServlet.java


  • 1 Download and Install Eclipse
    Eclipse IDE for Java Developers

  • 2 Download and Install XAMPP to its default location

    XAMPP comes really handy with




    Apache 2.2.21

    MySQL 5.5.16

    PHP 5.3.8

    phpMyAdmin 3.4.5

    FileZilla FTP Server 0.9.39

    Tomcat 7.0.21 (with mod_proxy_ajp as connector)




  • 3 Download Eclipse Tomcat Launcher plugin

    At the time of this article tomcatPluginV33.zip

    Extract the archive tomcatPluginV33.zip under C:\eclipse\plugins this should create a sub folder com.sysdeo.eclipse.tomcat_3.3.0

  • 4 Set JAVA_HOME to C:\Program Files\Java

  • 5 Set JRE_HOME to C:\Program Files\Java\jre6

  • 6 Let's get started


    To give you the big picture, in the steps below, you will use Eclipse to
    create the following directory structure and files.

    This examples Tomcat "webapps" directory is located at:

    C:\xampp\tomcat\bin\webapps

     


  • 7 Eclipse - Create a Java Project

  • 8 Launch Eclipse

  • 9 Tomcat Plugin

  • The Sysdeo Tomcat Plugin is our best friend. After you have installed it, you will notice these buttons and menues in your IDE.






    The left button starts Tomcat, the middle button stops it, the right button restarts Tomcat. Right now, they won't work if you press them. To enable them, you first need to configure a few things. Go to the menu "Window-> Preferences" there, you will see this dialogue box.


    Configure Tomcat Plugin

    Windows-->Preferences-->Tomcat


    Now you need to go to the menu item "Tomcat" and select your Tomcat version. At the time of writing that would be the 7.x version. Now we adjust the field "Tomcat Home" to point to the install directory that we selected before at install time. The Sysdeo plugin now knows where to look for the server.xml file and automatically assumes the standard path to look for the file. Eclipse is now able to manage this configuration file, i.e. add a new <context> for a new application

    Browse for tomcat home and select tomcat version




    Click on JVM settings and add JVM Parameters

    -Xmx2000M

    -Xms1000M

    -XX:MaxPermSize=128m



    Now we are ready to test start our Tomcat server. Click on the start button in the Tomcat menu and watch the console output. If Tomcat boots up without any stacktraces open your browser, and try to open the following address http://localhost:8080/ . If you see an image

    that is similar, to the one below everything is working okay






    • 10 File, New, Project, Java Project, Next

    • 11 Project Name: mytomcat-eclipse-helloworld-scratch

    • 12 UnCheck - Use default location.

    • 13 Click "Browse" and navigate to the Tomcat webapps"
      directory (ex: C:\xampp\tomcat\bin\webapps\webapps).

    • 14 This is a little tricky so follow closely.  We want to create a
      new directory.

      • Note:  The "webapps" directory should be selected.

      • Click "Make New Folder"

      • In the browse window list, you should be able replace the words "New
        Folder" with: mytomcat-eclipse-helloworld-scratch

        Note:  If you can't, in the browse window scroll to the "New
        Folder" and right click, choose "Rename" and change the folder name to
        mytomcat-eclipse-helloworld-scratch

      • Click "OK".

      • Check the value of "Location:" to make sure you have selected the
        correct folder.

        Location should now show: C:\Tomcat\Tomcat6.0\webapps\mytomcat-eclipse-helloworld-scratch

      • Click "Next" to go to the "Java Settings" screen.



    • 15 Source Folder

      • Click "Create new source folder".

        Folder name: WEB-INF/src

        Click "Finish"

      • Right click on "src" and choose "Remove from Build Path". 
        Later you will delete the folder.

        (Note: We just created the src file in a directory that web users
        can't directly get to: WEB-INF/src)



    • 16 Output Folder

      • Change the "Default output folder" to: mytomcat-eclipse-helloworld-scratch/WEB-INF/classes

        (Note: Currently the default will be:
        mytomcat-eclipse-helloworld-scratch/bin)



    • 17 Click "Finish"

    • 18 In the "Package Explorer" right click on "src" and choose delete.



  • 19 Eclipse - Build Path - add the Tomcat lib jars files.

    • Right click on the project.

    • Click "Build Path", "Configure Build Path", then
      click the tab "Libraries"

    • Check to see if "JRE System Library"
      is listed.  If not complete the next steps in this bullet.

      Click "Add Library", "JRE System Library",
      "Next", "Finish".

      Note: Under the tab "Order and Export" this lib file should be directly
      under the WEB-INF/src directory.

      You can't compile .java files without this library!!!

    • Click "Add External JARs"

    • Browse to the Tomcat common library directory.

      Ex: C:\xampp\tomcat\lib

    • Select all of the JAR files (Ctrl-A), then click "Open".

    • Click "OK" to leave the "Java Build Path" screen.



  • 20 Create the "WEB-INF\lib" Folder

    • Right click on "WEB-INF", "New", "Folder". 

    • Folder name: lib

    • Click "Finish"

    • Library files - for this project we will be using 2 .jar files:
      standard.jar & jstl.jar

      These 2 jar files need to reside in: webapps\mytomcat-eclipse-helloworld\WEB-INF\lib


      • mytomcat-eclipse-helloworld-scratch-lib.zip
        - download and extract this
        zip file into the new "lib" directory you just created.

        Note:  If you downloaded the files in this tutorial you will have this
        file in the directory:

        Pathname: tomcat\tutorial_tomcat_eclipse\webapps\mytomcat-eclipse-helloworld-scratch-lib.zip

        (Note: These lib files came from the Apache JSTL project called
        "standard".)

      • If you don't place the files properly in the lib directory you will get
        compile errors etc...





  • 21 Create the "WEB-INF\src\myeclipse" Package

    • Right click on "WEB-INF/src" (not
      "WEB-INF"), "New", "Package". 
      Folder name: myeclipse

    • Click "Finish"



  • 22 Create the "pages" Folder

    • Right click on "mytomcat-eclipse-helloworld-scratch",
      "New", "Folder".  Folder name: pages

    • Click "Finish"



  • 23 Create the "WEB-INF\web.xml" file.

    • Right click on "WEB-INF" (not "WEB-INF/src"), "New", "File". 
      File name: web.xml

    • web.xml -
      copy this content into the file.  Right click on the filename, open
      with, Text Editor.  If you open with the XML editor you can't copy and
      paste.  After you copy-n-paste, then open with "XML Editor".

    • Notice the 2 tags: <servlet> & <servlet-mapping>.  This is planning
      for the .java servlet file we will create.




  • 24 Create the "index.jsp" file

    • Right click on "mytomcat-eclipse-helloworld-scratch", "New", "File". 
      File name: index.jsp

    • index.jsp -
      copy this content into the file. (Warning:
      If the server & browser doesn't show this file as a Text file then do a
      view source so you can copy-n-paste.)

    • Note:

      • This JSP has just HTML tags.



  • 25 Create the "MyHelloWorldBean.java" Java source file.

    • Right click on "myeclipse"
      under the directory "WEB-INF/src", "New", "Class". 


      Name: MyHelloWorldBean

      Click "Finish"


    • MyHelloWorldBean.java -
      copy this content into the file. (Warning:
      If the server & browser doesn't show this file as a Text file then do a view
      source so you can copy-n-paste.)



  • 26 Create the "MyHelloWorldServlet.java" Java source file.

    • Right click on "myeclipse"
      under the directory "WEB-INF/src", "New", "Class". 


      Name: MyHelloWorldServlet

      Click "Finish"


    • MyHelloWorldServlet.java -
      copy this content into the file. (Warning:
      If the server & browser doesn't show this file as a Text file then do a view
      source so you can copy-n-paste.)



  • 27 Create the "myhelloworld_jstl.jsp" JSP file.

    • Right click on "pages", "New", "File". 


      File Name: myhelloworld_jstl.jsp

      Click "Finish"


    • myhelloworld_jstl.jsp -
      copy this content into the file. (Warning:
      If the server & browser doesn't show this file as a Text file then do a view
      source so you can copy-n-paste.)



  • 28 Create the "myhelloworld_bean.jsp" JSP file.

    • Right click on "pages", "New", "File". 


      File Name: myhelloworld_bean.jsp

      Click "Finish"


    • myhelloworld_bean.jsp -
      copy this content into the file. (Warning:
      If the server & browser doesn't show this file as a Text file then do a view
      source so you can copy-n-paste.)



  • 29 Reload the webapp or Stop Tomcat.

  • 30Test your Web App

    • 31 Start Tomcat and/or Reload this WebApp

    • 32 Go to:
      http://localhost:8080/mytomcat-eclipse-helloworld-scratch/pages/myhelloworld_jstl.jsp




    • Hello World (JSTL Example)







      JSTL Example (c:out): Hello World


       


    • 33 Go to: http://localhost:8080/mytomcat-eclipse-helloworld-scratch/pages/myhelloworld_bean.jsp



    • Hello World (JSP & Java Bean Example)




      Bean Example MyHelloWorld.getStrMyMessage(): Hello World


       


    • 34 Go to: http://localhost:8080/mytomcat-eclipse-helloworld-scratch/MyHelloWorldServlet





      • Hello World (Servlet Example)





        Hello World



      35 Optional - Change Text - Hello World



      • Using Eclipse, modify the following files then Reload the web app
        or Stop/Start Tomcat.




      • filename: index.jsp

        For the title & h1 tags change the following:

        from:

        mytomcat-eclipse-helloworld

        to:

        mytomcat-eclipse-helloworld-scratch

      • filename: WEB-INF\src\myeclipse\MyHelloWorldBean.java

        from:

        setStrMyMessage("Hello World");

        to:

        setStrMyMessage("Hello World - Hi");

      • filename: WEB-INF/src/myeclipse/MyHelloWorldServlet.java

        from:

        <p>Hello World</p>

        to:

        <p>Hello World - Hi</p>

      • filename: pages/myhelloworld_jstl.jsp

        from:

        <c:out
        value="Hello
        World"
        />

        to:

        <c:out
        value="Hello World
        - Hi"
        />


    • Reload Web App or Stop/Start Tomcat Service
      (because you changed a .java file!) - see steps
      above!

    • Test your Web App again



  • Thursday, November 03, 2011

    Matlab relative path issue in prj and MWArray.dll nightmare on Windows 7 64 bit

    Whenever you want to create a deployment project, you obviously would like to add it to source control repository for others to use..... But you will face a major issue...
    The main problem is that the .prj file which deploytool creates contains absolute paths which will not work on other computers!. This is really bad to see that this is still the case in MatLab R2011a.... Really! So I decided to use Visual Studio 2005 vcproj file to maintain my deployment project because Visual Studio 2005 project support relative path pretty damn well! Thank you Microsoft Visual Studio Team!. I decided to create a WIN32 utility using MFC to convert the relative path to absolute path using the vcproj file and generate a Matlab PRJ file. In my case I am targetting C# .Net Assembly. Here is the source code!


    #define _CRT_SECURE_NO_DEPRECATE
    #include "stdafx.h"
    #include "vcproj2matlabprj.h"
    #include
    #include
    #include
    #include
    #include
    #include "xmlParser.h"
    #include "win32utility.h"

    CString RelativePathToAbsolutePath(LPCTSTR contentRelativePath,LPCTSTR rootPath, BOOL &bRelativePathToParentFolders);

    void PrintFileName(XMLNode xNode,LPCTSTR pszRootFolder);

    FILE *_pOutMakeFile = NULL;


    #if !defined (WIN32)
    #define _strdup strdup
    #endif

    #ifdef _DEBUG
    #define new DEBUG_NEW
    #endif

    // The one and only application object

    CWinApp theApp;

    using namespace std;

    int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
    {
    int nRetCode = 0;

    // initialize MFC and print and error on failure
    if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
    {
    // TODO: change error code to suit your needs
    _tprintf(_T("Fatal Error: MFC initialization failed\n"));
    nRetCode = 1;
    }
    else
    {
    CString strRootFolder;
    CString strVCProjShortFilename;
    CString csPath;
    CString csFilenameNoExt;
    CString csExtension;
    CString strVCProj;
    CString strMathlabProj;
    CString strMathLabRootPath;
    CString strClassName;
    CString strNamespace;

    if ( argc < 4 )
    {
    printf("Usage: %s [MathLab 2011a RootPath EG: \"C:\\MATLAB\\R2011a\"]\n",argv[0]);
    return 1;
    }

    XMLNode xMainNode=XMLNode::openFileHelper(argv[1],"VisualStudioProject");

    strRootFolder = CString(argv[1]);
    strMathlabProj = CString(argv[2]);
    GetPathFromFileName(strRootFolder);

    strVCProj = CString(argv[1]);
    strVCProjShortFilename = CString(argv[1]);
    strMathLabRootPath = CString(argv[3]);

    GetFileNameComponents(strMathlabProj, // in
    csPath, csFilenameNoExt, csExtension); // out


    if ( xMainNode.isEmpty() )
    {
    printf("Not valid input file [%s]\n", argv[1]);
    return 2;
    }

    XMLNode xNode;

    xNode = xMainNode.getChildNode("Configurations");

    // Try to open output file
    _pOutMakeFile = fopen(argv[2],"w");
    if ( _pOutMakeFile == NULL )
    {
    printf("Can not open output file [%s]\n", argv[2]);
    return 3;
    }

    // Generate Header
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n",csFilenameNoExt.GetBuffer(0),csPath.GetBuffer(0),strMathlabProj.GetBuffer(0));
    fprintf(_pOutMakeFile,"%s\n",strMathlabProj.GetBuffer(0));
    fprintf(_pOutMakeFile,".NET Assembly\n");
    fprintf(_pOutMakeFile,"%s\n",csFilenameNoExt.GetBuffer(0));
    fprintf(_pOutMakeFile,"${PROJECT_ROOT}\\%s\\src\n",csFilenameNoExt.GetBuffer(0));
    fprintf(_pOutMakeFile,"${PROJECT_ROOT}\\%s\\distrib\n",csFilenameNoExt.GetBuffer(0));
    fprintf(_pOutMakeFile,"true\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"all\n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"on\n");
    fprintf(_pOutMakeFile,"on\n");
    fprintf(_pOutMakeFile,"on\n");
    fprintf(_pOutMakeFile,"on\n");
    fprintf(_pOutMakeFile,"on\n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"option.net.framework.default\n");
    fprintf(_pOutMakeFile,"option.assembly.type.private\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    strNamespace = csFilenameNoExt;
    strNamespace.MakeUpper();
    fprintf(_pOutMakeFile,"%s\n",strNamespace.GetBuffer(0));
    strClassName = csFilenameNoExt;
    fprintf(_pOutMakeFile,"C%s\n",strClassName.GetBuffer(0));
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n",strClassName.GetBuffer(0));

    // Print list of files
    xNode = xMainNode.getChildNode("Files");
    PrintFileName(xNode,strRootFolder);

    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"%sdistrib\\%sNative.dll\n",csFilenameNoExt.GetBuffer(0),csFilenameNoExt.GetBuffer(0),strRootFolder.GetBuffer(0),csFilenameNoExt.GetBuffer(0));
    fprintf(_pOutMakeFile,"%sdistrib\\%s.dll\n",csFilenameNoExt.GetBuffer(0),csFilenameNoExt.GetBuffer(0),strRootFolder.GetBuffer(0),csFilenameNoExt.GetBuffer(0));
    fprintf(_pOutMakeFile,"%sdistrib\\readme.txt\n",csFilenameNoExt.GetBuffer(0),strRootFolder.GetBuffer(0));
    fprintf(_pOutMakeFile,"%sdistrib\\%s_overview.html\n",csFilenameNoExt.GetBuffer(0),csFilenameNoExt.GetBuffer(0),strRootFolder.GetBuffer(0),csFilenameNoExt.GetBuffer(0));
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"%s\n",strMathLabRootPath.GetBuffer(0));
    fprintf(_pOutMakeFile,"\n");
    //fprintf(_pOutMakeFile,"C:\\My Documents\\MATLAB\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\general\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\ops\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\lang\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\elmat\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\randfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\elfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\specfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\matfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\datafun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\polyfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\funfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\sparfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\scribe\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\graph2d\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\graph3d\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\specgraph\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\graphics\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\uitools\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\strfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\imagesci\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\iofun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\audiovideo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\timefun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\datatypes\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\verctrl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\codetools\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\helptools\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\winfun\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\winfun\\NET\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\demos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\timeseries\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\hds\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\guide\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\plottools\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\local\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\matlab\\datamanager\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\simulink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\instrument\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\coder\\matlabcoder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simulink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simulink\\slresolve\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\blocks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\components\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\fixedandfloat\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\fixedandfloat\\obsolete\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simdemos\\aerospace\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simdemos\\automotive\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simdemos\\industrial\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simdemos\\simfeatures\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simdemos\\simgeneral\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\dee\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\glue\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\glue\\studio\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\dastudio\\depviewer\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\stateflow\\stateflow\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simulink\\MPlayIO\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simulink\\dataobjectwizard\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\hdlshared\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\asap2\\asap2\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\asap2\\asap2\\user\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\common\\can\\blocks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\common\\tgtcommon\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\connectivity\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\pil\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\shared\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtw\\datadiff\\GUI\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtw\\datadiff\\GUI\\Icons\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtw\\datadiff\\API\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtw\\cgv\\API\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtw\\misra\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulinkcoder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\accel\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\blocks\\library\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\blocks\\obsolete\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\fixedandfloat\\fxpdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simulink\\modeladvisor\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\simulink\\modeladvisor\\fixpt\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\stateflow\\sfdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\stateflow\\coder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\adivdsp\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\adivdsp\\vdspdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\adivdsp\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\adivdsp\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\adivdsp\\vdspblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\adivdsp\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\aero\\aero\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\mapgeodesy\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\aero\\astdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\asynciolib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\AUTOSAR\\AUTOSAR\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\blackfin\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\blackfin\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\blackfin\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\blackfin\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\blackfin\\blackfindemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\c166\\c166\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\c166\\blocks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\c166\\c166demos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\foundation\\utils\\resource_config\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\can\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\can\\canblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\can\\canmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\can\\canmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\cgir_fe\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\coder\\codegendemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\coder\\emlcodermex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\coder_foundation\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\simtargets\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\coder\\coder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\comm\\comm\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\comm\\commutilities\\comminit\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\comm\\commutilities\\commmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\comm\\commutilities\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\comm\\commdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\comm\\commdeprecated\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\help\\toolbox\\comm\\examples\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\testconsole\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\comparisons\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\compiler\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\compiler\\compilerdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\control\\control\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\control\\ctrlguis\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\control\\ctrlobsolete\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\control\\ctrlutil\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\control\\ctrldemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\help\\toolbox\\control\\examples\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\controllib\\engine\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\controllib\\engine\\options\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\controllib\\engine\\optim\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\controllib\\general\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\controllib\\graphics\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\controllib\\requirements\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\curvefit\\curvefit\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\curvefit\\splines\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\curvefit\\cftoolgui\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\curvefit\\sftoolgui\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\curvefit\\curvefitdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\optimlib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\daq\\daq\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\daq\\daqguis\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\daq\\daqdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\daq\\daqblks\\daqblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\daq\\daqblks\\daqmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\daq\\daqblks\\daqmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\dastudio\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\des\\desblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\des\\desmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\des\\desmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\des\\desdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\distcomp\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\user\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\mpi\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\pctdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\parallel\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\parallel\\util\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\lang\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\cluster\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\distcomp\\gpu\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dotnetbuilder\\dotnetbuilder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dotnetbuilder\\dotnetbuilderdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dsp\\dsp\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dsp\\dsputilities\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dsp\\dsputilities\\dspinit\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dsp\\dsputilities\\dspmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dsp\\dspdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\filterdesignlib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\system\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\dspblks\\dspblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\dspblks\\dspmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\fixedpoint\\fixedpoint\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\help\\toolbox\\dsp\\examples\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\dsp\\filterdesign\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\eclipseide\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\eclipseide\\eclipseidedemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\eclipseide\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\eclipseide\\registry\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\eclipseide\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\edalink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\foundation\\hdllink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\modelsim\\modelsim\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\modelsim\\modelsimdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\incisive\\incisive\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\incisive\\incisivedemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\discovery\\discovery\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\discovery\\discoverydemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\tlmgenerator\\foundation\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\tlmgenerator\\foundation\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\tlmgenerator\\foundation\\tlmgeneratordemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\eda\\edagraph\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\eda\\fil\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\eda\\fil\\fildemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\eda\\fpgaautomation\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\eda\\hdlparser\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\ecoder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\ecoder\\ecoderdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpt\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpt\\mpt\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpt\\user_specific\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\embeddedcoder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\eml\\eml\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\exlink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\fixedpoint\\fidemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\fixedpoint\\fixedpointtool\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\spcuilib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\siglib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\fixpoint\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\fixpoint\\fpca\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\edalink\\extensions\\fpgaautomation\\fpgademos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ghsmulti\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ghsmulti\\multidemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ghsmulti\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ghsmulti\\multiblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ghsmulti\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ghsmulti\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\hdlcoder\\hdlcoder\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\hdlcoder\\hdlcoder\\hdlwa\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\hdlcoder\\hdlcoderdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\hdlfilter\\hdlfilter\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\hdlfilter\\hdlfiltdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\iarew\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\iarew\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\iarew\\iarewdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\iarew\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\iarew\\templates\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\hookpoints\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\tgtpref2\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\profiler\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\blks\\tlc_c\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\pjtgenerator\\blks\\utils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\autointerface\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\autointerface\\ideregisterplugins\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\util\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\errorhandler\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\lfsocket\\lfsocket\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\foundation\\xmakefile\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\idelinkdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\ident\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\nlident\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\idobsolete\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\idguis\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\idutils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\iddemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\iddemos\\examples\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\ident\\idhelp\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\images\\colorspaces\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\images\\images\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\images\\imdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\images\\imuitools\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\images\\iptformats\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\images\\iptutils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\imageslib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\imaq\\imaq\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\imaqlib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\imaq\\imaqdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\imaq\\imaqblks\\imaqblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\imaq\\imaqblks\\imaqmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\imaq\\imaqblks\\imaqmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\instrument\\instrument\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\instrument\\instrumentdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\instrument\\instrumentblks\\instrumentblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\instrument\\instrumentblks\\instrumentmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\instrument\\instrumentblks\\instrumentmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\sam\\m3i\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slvnv\\simcoverage\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\\common\\configuration\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\\mpc555demos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\\mpc555dk\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\\pil\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\\rt\\blockset\\mfiles\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\mpc555dk\\rt\\blockset\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\optim\\optim\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\optim\\optimdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\data_manager\\data_manager\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\equation_language\\equation_language\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\foundation\\foundation\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\gl\\core\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\gl\\sli\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\logging\\base\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\logging\\mli\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\network_engine\\ne_support\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\network_engine\\network_engine\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\ne_sli\\ne_sli\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\pmir\\pmir\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\pm_sli\\pm_sli\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\powersys\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\DR\\DR\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\drives\\drives\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\facts\\facts\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\DR\\DRdemo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\drives\\drivesdemo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\facts\\factsdemo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\powersys\\powerdemo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\compiler\\core\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\compiler\\sli\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\simscapedemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\engine\\core\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\engine\\mli\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\engine\\sli\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\foundation\\simscape\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape_language\\simscape_language\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\library\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simscape\\simscape\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\simulation\\base\\m\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\physmod\\unit_manager\\unit_manager\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slvnv\\reqmgt\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slvnv\\slvnv\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slvnv\\rmidemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rf\\rf\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rf\\rfdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rf\\rftool\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rfblks\\rfblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rfblks\\rfblksmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rfblks\\rfblksmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rfblks\\rfblksdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgen\\rptgen\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgen\\rptgenv1\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgen\\rptgendemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgenext\\rptgenext\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgenext\\rptgenextv1\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgenext\\rptgenextdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\rptgen\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\rtwin\\rtwin\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\rtwin\\rtwindemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtwdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\rtwdemos\\rsimdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simulink\\blocks\\sb2sl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\eml\\eml\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\sigbldr\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\slcontrollib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\signal\\signal\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\signal\\sigtools\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\signal\\sptoolgui\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\signal\\sigdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simrf\\simrf\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simrf\\simrfmasks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\simrf\\simrfdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\help\\toolbox\\simrf\\examples\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\sl3d\\sl3d\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\sl3d\\sl3ddemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slcontrol\\slcontrol\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slcontrol\\slctrlguis\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slcontrol\\slctrlutil\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slcontrol\\slctrldemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\slcontrol\\slctrlobsolete\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\sldv\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\slvnv\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgenext\\slxmlcomp\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\stats\\stats\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\stats\\statsdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\stats\\classreg\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\statslib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\symbolic\\symbolic\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\symbolic\\symbolicdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\targetdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\foundation\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\foundation\\utils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\foundation\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\foundation\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\foundation\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\\utils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic2000\\tic2000demos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\utils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\blks\\sysobj_mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic6000\\tic6000demos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\linux\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\linux\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\linux\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\linux\\src\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\vxworks\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\vxworks\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\vxworks\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\vxworks\\src\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\windows\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\windows\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\operatingsystem\\windows\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\intelhost\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\\ti\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\\ti\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\\ti\\utils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\\ti\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\\ti\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\shared\\ti\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\etargets\\etargets\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\etargets\\etargets\\demoutils\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\testmeaslib\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\tasking\\tasking\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\tasking\\taskingdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rtw\\targets\\tasking\\tasking\\taskingblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\testmeaslib\\general\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\testmeaslib\\graphics\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\shared\\testmeaslib\\simulink\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic5000\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic5000\\blks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic5000\\blks\\mex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic5000\\blks\\masks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\target\\extensions\\processor\\tic5000\\tic5000demos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\ccsblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\ccsdemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\ccsdemos\\util\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\ccslinkblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\ccslinkblks\\rtdxsimblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\lic\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\tfl\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\util\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\rtw\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\ticcs\\envChecker\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\vision\\vision\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\vision\\visionutilities\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\vision\\visionutilities\\visioninit\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\vision\\visionutilities\\visionmex\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\vision\\visiondemos\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\help\\toolbox\\vision\\examples\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\wavelet\\wavelet\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\wavelet\\wmultisig1d\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\wavelet\\wavedemo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\wavelet\\compression\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\wrworkbench\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\wrworkbench\\mdlinfo\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\wrworkbench\\registry\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\idelink\\extensions\\wrworkbench\\wrworkbenchblks\n");
    fprintf(_pOutMakeFile,"${MATLAB_ROOT}\\toolbox\\rptgen\\xmlcomp\n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"true\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"true\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"5.1\n");
    fprintf(_pOutMakeFile,"true\n");
    fprintf(_pOutMakeFile,"false\n");
    fprintf(_pOutMakeFile,"win32\n");
    fprintf(_pOutMakeFile,"true\n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"
    \n");
    fprintf(_pOutMakeFile,"
    \n\n");
    }

    return nRetCode;
    }

    void PrintFileName(XMLNode xParentNode, LPCTSTR pszRootFolder)
    {
    CString strRootFolder = pszRootFolder;

    int n=xParentNode.nChildNode();
    for( int i = 0; i < n; i ++ )
    {
    XMLNode xNode = xParentNode.getChildNode(i);
    if ( !strcmp(xNode.getName(), "File" ) )
    {
    const char *pcFileName = xNode.getAttribute("RelativePath");
    char *pcNewStr = _strdup(pcFileName );

    // Find the file extension
    char *ext = strrchr(pcNewStr, '.');
    if ( NULL != ext && !strcmp(ext, ".m"))
    {
    CString strFullFilename;
    BOOL bRelativePathToParentFolders;
    CString strRelativePath = pcNewStr;

    if (IsCurrentDirPath(&strRelativePath))
    {
    CString strSubPath;
    // remove .\ and append path
    int pos = strRelativePath.Find("\\");
    int len = strRelativePath.GetLength();
    if ( pos > 0 ) {
    strSubPath = strRelativePath.Right(len-pos-1);
    }
    // append
    strFullFilename = strRootFolder + strSubPath;
    }
    else
    {
    strFullFilename = RelativePathToAbsolutePath(strRelativePath,strRootFolder, bRelativePathToParentFolders);
    }

    fprintf(_pOutMakeFile,"%s\n", strFullFilename.GetBuffer(0) );
    }

    free( pcNewStr );
    }
    else
    {
    PrintFileName(xNode,strRootFolder);
    }
    }
    }


    CString RelativePathToAbsolutePath(LPCTSTR contentRelativePath,LPCTSTR rootPath, BOOL &bRelativePathToParentFolders)
    {
    CString strContentPath;
    CString strFullPath;
    CString tempPath = _T("");

    strContentPath.Format(_T("%s"),contentRelativePath);
    tempPath.Format(_T("%s"),contentRelativePath);

    // First let's convert to the right kind of path seps:
    strContentPath.Replace('/', PATH_SEPARATOR);
    CString fullPath = rootPath;
    int sepIndex = fullPath.ReverseFind(PATH_SEPARATOR);

    // put those together, and we've got our full path
    if (sepIndex >= 0)
    {
    BOOL gotPath = FALSE;
    CString strAbsoluteFullPath;
    bool bRelativeUp = false;

    CString beginStr = strContentPath.Left(3);
    bRelativeUp = ( beginStr.CompareNoCase(REL_PATH_STR_WIN) == 0 || beginStr.CompareNoCase(REL_PATH_STR_MAC) == 0 || beginStr.CompareNoCase(REL_PATH_STR_UNIX) == 0 );
    bRelativePathToParentFolders = bRelativeUp;

    strFullPath = fullPath.Left(sepIndex + 1);

    if (!strContentPath.IsEmpty() && strFullPath != contentRelativePath && bRelativeUp) {
    CString extension;
    int period = strContentPath.ReverseFind('.');
    if ( period >= 0 )
    extension = strContentPath.Right(strContentPath.GetLength()-period-1);

    if ( (extension.GetLength() == 3) || (extension.GetLength() == 1)) {
    //strContentPath.Replace(_T("..\\"), _T(".\\"));
    CreateFullPath(&strAbsoluteFullPath, strFullPath, strContentPath);
    strFullPath = strAbsoluteFullPath;
    strFullPath.Replace('/', PATH_SEPARATOR);

    gotPath = FileExist(strFullPath);
    if (gotPath)
    return strFullPath;
    else
    return CString(_T(""));

    }
    else
    return CString(_T(""));
    }
    else
    {
    int sepIndex = strContentPath.ReverseFind(PATH_SEPARATOR);
    if (sepIndex >= 0) {
    // We have a full path already
    gotPath = FileExist(strContentPath);
    if (gotPath)
    return strContentPath;
    }

    // We have a relative path (subfolder)
    CString extension = _T("");
    int period = strContentPath.ReverseFind('.');
    if ( period >= 0 )
    extension = strContentPath.Right(strContentPath.GetLength()-period-1);

    if (extension.GetLength() == 3) {
    // single file name no sub folder
    strFullPath = strFullPath + strContentPath;
    gotPath = FileExist(strFullPath);
    if (gotPath)
    return strFullPath;
    else
    return CString(_T(""));
    }
    }
    }
    else
    {
    strFullPath = fullPath;
    }

    strFullPath += tempPath;

    return strFullPath;
    }

    This will solve the following issue :)

    http://stackoverflow.com/questions/1790417/matlab-deployment-add-files-to-source-control

    Now let's look at a sample Matlab script which can be converted to an assembly.

    Follow the following link

    http://www.mathworks.com/matlabcentral/fileexchange/12987-integrating-matlab-with-c

    There is a big problem when targeting .NET 4.0 for a client referencing a generated assembly targeting .NET 4.0 as far as I am concerned which should be fixed ASAP by Mathworks. This problem still remains with Matlab R2011a.
    A C# client targeting .NET 4.0 will not run on Windows 7 64 bit. When the C# client will try to instantiate the class wrapper for the generated Matlab assembly using new, an exception will be thrown. Only 32 bit OS such as the old Windows XP will support both the .NET Framework 2.0 and 4.0. But not Windows 7 64 bit running as 32 bit. There is a dependency with .NET 2.0 for MWArray.dll at least I can't find the v4 version anywhere under C:\MATLAB\R2011a. Because .NET Framework 2.0 won't install on Windows 7 64 bit, I highly request the Mathworks folks to release MWArray.dll for .NET 4.0 and create a dependency with the 4.0 version when building the assembly. I always check target 4.0 but the dependency is still the 2.0. Maybe this is a fallback and I am missing the 4.0 version or maybe it is not supported.

    Deployment Runtime

    http://www.mathworks.com/help/toolbox/compiler/f12-999353.html


    Thanks!

    Google engineer Steve Yegge let the frustration fly in a post regarding the Mountain View's plucky social network

    http://www.minyanville.com/dailyfeed/2011/10/13/google-engineer-calls-google-a/

    Tuesday, November 01, 2011

    Really adobe

    One update every two months.... Give me break!!!!

    Sept 13, 2011 10.1.1 Q Latest release. This a regular quarterly update with security enhancements, improvements to stability, and bug fixes.
    Jun 14, 2011 10.1 Q This is a major update that provides security fixes, feature updates, and major enhancements such as Protected View for Acrobat.
    Apr 21, 2011 10.0.3 OOC This patch fixes a vulnerability and provides an updated Flash player.
    Mar 21, 2011 10.0.2 OOC This patch fixes a vulnerability and provides an updated Flash player.
    Feb 8 2011 10.0.1 Q Numerous security fixes as well as improvements to Protected Mode, QTP support, Flash, and support for SCCM via newly released SCUP catalogs.

    Convert Mathlab to C# assembly

    Step 1 Install Mathlab 2011

    Step 2 Install Visual Studio 2010

    Step 3 native compiler

    make sure you runmex -setup to select your target C++ compiler



    Step 4 To create an Assembly launch Mathlab 2011

    Select New Deployment Project then select the target Type



    Step 5 Finally build .NET Assembly

    The sub folder will contain the Assembly DLL and Native DLL

    Small, simple, cross-platform, free and fast C++ XML Parser

    Small, simple, cross-platform, free and fast C++ XML Parser

    Business Intelligence
    TIMi added value
    This project started from his frustration that he could not find any simple, portable XML Parser to use inside all my projects (for example, inside the award-winning TIMi software suite created by the Business-Insight company). Let's look at the well-known Xerces C++ library: The complete Xerces project is 53 MB! (11 MB compressed in a zipfile). In 2003, He was developping many small tools. He was using XML as standard for all my input/ouput configuration and data files. The source code of his small tools was usually around 600KB. In these conditions, don't you think at 53MB to be able to read an XML file is a little bit "too much"? So he created his own XML parser. His XML parser "library" is composed of only 2 files: a .cpp file and a .h file. The total size is 104 KB

    Here is how it works: The XML parser loads a full XML file in memory, it parses the file and it generates a tree structure representing the XML file. Of course, you can also parse XML data that you have already stored yourself into a memory buffer. Thereafter, you can easily "explore" the tree to get your data. You can also modify the tree using "add" and "delete" functions
    and regenerate a formatted XML string from a subtree. Memory management is totally transparent through the use of smart pointers (in other words, you will never have to do any new, delete, malloc or free)("Smart pointers" are a primitive version of the garbage collector in Java).

    To the best of his knowledge, there exists no other "non-validating C++ XML parser" that is as simple and as powerfull.

    Well Tiny XML is pretty powerful too!

    Here are the characteristics of the XMLparser library:

    Non-validating XML parser written in standard C++ (DTD's or XSD's informations are ignored).

    Cross-plateform: the library is currently used every day on Solaris, Linux (32bit and 64bit) and Windows to manipulate "small" PMML documents (10 MB).
    The library has been tested and is working flawlessly using the following compilers: gcc (under linux, Mac OS X Tiger and under many unix flavours), Visual Studio 6.0, Visual Studio .NET (under Windows 9x,NT,2000,XP,Vista,CE,mobile), Intel C/C++ compiler, SUN CC compiler, C++ Borland Compiler. The library is also used under Apple OS, iPhone/iPad OS, Amiga OS, QNX and under the Netburner plateform. To the best of my knowledge, i think that all plateforms are now supported.
    The parser builds a tree structure that you can "explore" easily (DOM-type parser).
    The parser can be used to generate XML strings from subtrees (it's called rendering). You can also save subtrees directly to files (automatic "Byte Order Mark"-BOM support).
    Modification or "from scratch creation" of large XML tree structures in memory using funtions like addChild, addAttribute, updateAttribute, deleteAttribute,...
    It's SIMPLE: no need to learn how to use dozens of classes: there is only one simple class: the 'XMLNode' class (that represents one node of the XML tree).

    Very efficient (Efficiency is required to be able to handle BIG files):
    The string parser is very efficient: It does only one pass over the XML string to create the tree. It does the minimal amount of memory allocations. For example: it does NOT use slow STL::String class but plain, simple and fast C malloc 's. It also allocates large chunk of memory instead of many small chunks. Inside Visual C++, the "debug versions" of the memory allocation functions are very slow: Do not forget to compile in "release mode" to get maximum speed.
    The "tree exploration" is very efficient because all operations on the 'XMLNode' class are handled through references: there are no memory copy, no memory allocation, never.

    The XML string rendering is very efficient: It does one pass to compute the total memory size of the XML string and a second pass to actually create the string. There is thus only one memory allocation and no extra memory copy. Other libraries are slower because they are using the string concatenation operator that requires many memory (re-)allocations and memory copy.

    In-memory parsing
    Supports XML namespaces
    Very small and totally stand-alone (not built on top of something else). Uses only standard library (and only for the 'fopen' and the 'fread' functions to load the XML file).

    Easy to integrate into you own projects: it's only 2 files! The .h file does not contain any implementation code. Compilation is thus very fast.
    Robust.
    Optionnally, if you define the C++ prepocessor directives STRICT_PARSING and/or APPROXIMATE_PARSING, the library can be "forgiving" in case of errors inside the XML.

    He has tried to respect the XML-specs given at: http://www.w3.org/TR/REC-xml/
    Fully integrated error handling :
    The string parser gives you the precise position and type of the error inside the XML string (if an error is detected).
    The library allows you to "explore" a part of the tree that is missing. However data extracted from "missing subtrees" will be NULL. This way, it's really easy to code "error handling" procedures.

    Thread-safe (however the global parameters "guessUnicodeChar" and"strictUTF8Parsing" must be unique because they are shared by all threads).
    Full Native Supports for a wide range of character sets & encodings: ANSI (legacy) / UTF-8 / Shift-JIS / GB2312 / Big5 / GBK.
    Under Windows, Linux, Linux 64 bits & Solaris, they have additionnaly: Unicode 16bit / Unicode 32bit widechar characters support that includes:
    For the unicode version of the library: Automatic conversion to Unicode before parsing (if the input XML file is standard ansi 8bit characters).
    For the ascii version of the library: Automatic conversion to legacy or UTF-8 before parsing (if the input XML file is unicode 16 or 32bit wide characters).

    The XMLParser library is able to handle successfuly chinese, japanese, cyrilic and other extended characters thanks to an extended UTF-8 encoding support, Shift-JIS (japanese) and to GB2312/Big5/GBK encoding support (chinese) (see this UTF-8-demo that shows the characters available). If you are still experiencing character encoding problems, he suggest you to convert your XML files to UTF-8 using a tool like iconv (precompiled win32 binary).

    Transparent memory management through the use of smart pointers.

    Support for a wide range of clearTags that are containing unformatted text:
    {![CDATA[ ... ]]}, {!-- ... --}, {PRE} ... {/PRE}, {!DOCTYPE ... }
    Unformatted texts are not parsed by the library and can contain items that are usually 'forbidden' in XML (for example: html code)
    Support for inclusion of pure binary data (images, sounds,...) into the XML document using the four provided ultrafast Base64 conversion functions.
    The library is under the Aladdin Free Public License(AFPL).


    A small tutorial
    Let's assume that you want to parse the XML file "PMMLModel.xml" that contains:
    ( all < replace by { and all > replace by } )

    {?xml version="1.0" encoding="ISO-8859-1"?>
    {PMML version="3.0" xmlns="http://www.dmg.org/PMML-3-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema_instance"}
    {Header copyright="Frank Vanden Berghen"}
    Hello World!
    {Application name="<Condor>" version="1.99beta" /}
    {/Header}
    {Extension name="keys"}
    {Key name="urn"}{/Key}
    {/Extension}
    {DataDictionary}
    {DataField name="persfam" optype="continuous" dataType="double"}
    {Value value="9.900000e+001" property="missing" /}
    {/DataField}
    {DataField name="prov" optype="continuous" dataType="double" /}
    {DataField name="urb" optype="continuous" dataType="double" /}
    {DataField name="ses" optype="continuous" dataType="double" /}
    {/DataDictionary}
    {RegressionModel functionName="regression" modelType="linearRegression"} {RegressionTable intercept="0.00796037"}
    {NumericPredictor name="persfam" coefficient="-0.00275951" /}
    {NumericPredictor name="prov" coefficient="0.000319433" /}
    {NumericPredictor name="ses" coefficient="-0.000454307" /}
    {NONNumericPredictor name="testXmlExample" />
    {/RegressionTable}
    {/RegressionModel}
    {/PMML}

    Let's analyse line by line the following small example program:

    #include // to get "printf" function
    #include // to get "free" function
    #include "xmlParser.h"

    int main(int argc, char **argv)
    {
    // this open and parse the XML file:
    XMLNode xMainNode=XMLNode::openFileHelper("PMMLModel.xml","PMML");
    // this prints "":
    XMLNode xNode=xMainNode.getChildNode("Header");
    printf("Application Name is: '%s'\n", xNode.getChildNode("Application").getAttribute("name"));
    // this prints "Hello world!":
    printf("Text inside Header tag is :'%s'\n", xNode.getText());
    // this gets the number of "NumericPredictor" tags: xNode=xMainNode.getChildNode("RegressionModel").getChildNode("RegressionTable");
    int n=xNode.nChildNode("NumericPredictor");
    // this prints the "coefficient" value for all the "NumericPredictor" tags:
    for (int i=0; i printf("coeff %i=%f\n",i+1,atof(xNode.getChildNode("NumericPredictor",i).getAttribute("coefficient")));
    // this prints a formatted ouput based on the content of the first "Extension" tag of the XML file:
    char *t=xMainNode.getChildNode("Extension").createXMLString(true); printf("%s\n",t);
    free(t);
    return 0;
    }