MATLAB: Regarding HDL Coder

gui simulink blockHDL Codersimulink

I wan to link HDL Coder to my own designed GUI.
If i select a button, that should generate the code from model. Can any one help me out?

Best Answer

You can use function command makehdl() for generating code from command line or from a m-file. Call this function in your GUI's button callback.
See