I want to generate a spiking signal of desired frequency and amplitude. I want to give this as an input to my astrocyte-vessel model which gives some output value. Dont consider the details of the models.. Lets assume it to be a system which takes a spiking pattern as an input and gives some final value of a variable 'a'.. Now this system is very selective in taking input waveforms.. It takes only spiking waveform as an input.. I tried with sinusoidal, sawtooth square waveforms.. But at some value of frequency it gives Nan values(which is extremely undesired!)
So can anybody tell as to how can I generate a spiking pattern waveform wherein I can control the frequency and the amplitude?
I am using Matlab 2011