Contenuto principale

mlhdlc_demo_setup

R2026b

Copy demo example files to the current or specified directory

Since R2026b

Description

mlhdlc_demo_setup(demoname) creates a temporary directory and copies all required files for the demo example to this directory. This function sets the temporary directory as the current working directory.

example

mlhdlc_demo_setup(demoname,dir) copies all the required files for the demo to the specified directory dir. Any existing data in the specified directory is overwritten.

example

mlhdlc_demo_setup("list") lists all the available demo examples.

example

Examples

collapse all

To setup the sfir demo example use the following command. It creates a temporary directory and copies all the required files for the sfir demo example.

mlhdlc_demo_setup("sfir");

To set up the mlhdlc_sqrt demo example in the specified directory, use the following command. This command overwrites any files in the specified directory with the mlhdlc_sqrt demo example files.

mlhdlc_demo_setup("mlhdlc_sqrt","C:\Users\Public\demo");

To get a list of all the available HDL Coder demo examples use this command.

mlhdlc_demo_setup("list")

Input Arguments

collapse all

Example design name, specified as a character vector.

Example: "sfir"

Directory path to copy the demo example files, specified as a character vector.

Example: "/usr/example"

Version History

Introduced in R2026b