communicate between matlab and arudiono mega2560

another prob@error

"Current code generation target for model 'LED1' is either not configured for or does not support external mode. In the Code Generation > Interface pane of Configuration Parameters dialog, select Interface option to be "External Mode" to enable external mode for targets that support it"

plizz help me