and I want to create a 3d plot using meshgrid where x=par_optimos(1), y=par_optimos(2) and z the min f(x) in that stept of the iteration , but I don´t know how to do it.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.