This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Specify MATLAB file executed when start event occurs


The StartFcn property specifies the MATLAB® file function to execute when a start event occurs. A start event occurs immediately after you issue the start command.

The StartFcn callback executes synchronously. The toolbox does not set the object's Running property to 'on' until the callback function finishes executing. If the callback function encounters an error, the object never starts running.

Start event information is stored in the EventLog property.




Data type

Character vector, function handle, or cell array


The default value is an empty matrix ([]).

See Also


EventLog, Running

Was this topic helpful?