MATLAB GUIs (whether created with App Designer or GUIDE) are intended for use on desktop environments and cannot be directly converted to C code or deployed on embedded hardware like microcontrollers.
However, the functional logic behind the GUI can be extracted and deployed using Simulink and Embedded Coder.
Refer to this following MATLAB answer’s link which discusses the same doubt as yours:
Hope this helps!
