I have used the code mentioned there in octave to implement frequency modulation with sinusoidal message and square wave carrier. But the resultant FM waveform has a frequency which is not proportional to the message signal amplitude.
See the attachment.
What could be the reason. How could it be resolved?