(Feel free to use/modify these codes as you see fit. Any publications (codes, papers, technical reports,..) in which our codes (in their original or a modified format) have been used should should cite the following references.)  A. Radwan, M. A Zidan, K. N. Salama, “HP Memristor Mathematical Model for Periodic Signals and DC,” IEEE International Midwest Symposium on Circuits and Systems, pp. 861864, Seattle, USA, August 2010.
 A. Radwan, M. A Zidan, K. N. Salama, “On the Mathematical Modeling of Memristors,” 22nd International Conference on Microelectronics (ICM 2010), pp. 284287, Cairo, Egypt, December 2010.
 A VerilogA model of the memristor is provided. Its more stable than using spice models, very fast and uses the fundamental charge equations rather than trying to memic a specific implementation
 A MATLAB function that returns the numerical solution of the resistance of the memristor for a arbitrary voltage and time vectors.Archive include: m file and example file.
Sample output
Copyright (c) 2011, M. Affan Zidan, A. G. Radwan and K. N. Salama King Abdullah University of Science and Technology All rights reserved.
