look at the attached m-file, it works fine. i want corresponding C++ code which should work in the same way. it is a simple task for one who knows how to convert matlab scripts to c++, those who don't know better do not bid.
14 freelance ont fait une offre moyenne de 61 $ pour ce travail
I actually wrote a simple electrical simulator from scratch once, so I understand in detail what your code is doing. I also have extensive experience with both C++ and MATLAB/Octave.
I am good in matlab and c++ as I have done several projects using these two technologies during my undergraduate studies. This type of works are familiar to me.