It's warning me that the parameter in bayesopt is too much,but I can run this example in the 2018b.How can I solve this problem?I want using the 2019b.
bayesopt function was introduced in R2016b, and the example works well in my R2020b. You can try to check the change log of R2019b and the function doc of bayesopt function in R2019b. In my experience, this should be a problem of your writing, not a problem of version.
Thanks for your answer,but the same code using this bayesopt function as this example,I haven't change anything in this example.And I have tried others example of this function.The version 2019b still runing fail with the error parameters are too much.
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.