Transcranial magnetic stimulation (TMS) is a remarkable tool for probing the brain. However, it is still unclear why specific regions in the cortex are excitable by TMS while others are not. This invention provides methods and tools for the design of efficient magnetic stimulators. Such stimulators can excite neuronal networks that were not sensitive to stimulation until now. Stimulation can be carried out both in-vitro and in-vivo. Novel systems and techniques of this invention will enable both treatment and diagnostics by stimulating regions of the brain or neuronal assemblies that were previously unaffected by TMS.