Long term synaptic changes induced by neural spike activity are believed to underlie learning and memory. Spike-driven long term synaptic plasticity has been investigated in simplified situations in which the patterns of asynchronous activity to be encoded were statistically independent. An extra regulatory mechanism is required to extend the learning capability to more complex and natural stimuli. This mechanism is provided by the effects of the action potentials that are believed to be responsible for spike-timing dependent plasticity. These effects, when combined with the dependence of synaptic plasticity on the post-synaptic alepolarization, produce the learning rule needed for storing correlated patterns of asynchronous neuronal activity.