add - Add file or data type to active project

Syntax

add(vd,'my_file')

Description

add(vd,'my_file') adds the file my_file to the active project from the current MATLAB working directory. If you do not have an active project in the IDE, MATLAB returns an error message and does not add the file. You can specify the file by name, if the file is in your MATLAB or Embedded IDE Link VS software working directory, or provide the fully qualified path to the file when the file is not in your working directories.

To add a file add.txt that is in your MATLAB working directory to the IDE, use the following command:

add(vd,'add.txt');

where vd is the handle for your vdsplink object. If the file add.txt is not in either working directory, the command changes to include the full path to the file:

add(vd,'fullpathtofile\add.txt');

You can add files of all types that the IDE supports. The following table shows the supported file types.

Supported File TypeFile Extension
ANSI C/C++ source files*.cpp, *.c, *.cxx, *.h, *.hpp, *.hxx
Assembly source files*.asm, *.dsp
Object and Library files*.doj, *.dlb
Linker Command files *.ldf
VisualDSP++ support file*.vdk

See Also

activate

cd

open

remove

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS