Good day!
Please consider the following:
I want to generate a square wave using the Matlab function square() in Simulnk using "Emebedded Matlab Function". I tried the same by using the eml.extrinsic,
but I keep getting an error which states
'y'<the output from embedded function block> cannot be equated to square.
Please see following screen shots:

The idea behind this block is to generate a square wave based on the defined frequency range.
a= amplitudef= frequencydc= duty cycle
Please let me know what I'm doing wrong? Or point me to what I have to read in order to understand my error? Or provide alternative methods to accomplish what I want.
Thanks in advance!