Community Profile

photo

腾龙娱乐在线客服17787482287


Last seen: 16 jours ago Active since 2022

TL3090.com

Statistics

  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Question


请问这样拟合e指数曲线问题在哪里?
x = 400:0.4:1000; y = pop3; f = fittype('a*exp(-x/b+c)','independent','x','coefficients',{'a','b','c'}); x1 = x'; y1 = y'; ...

6 mois ago | 1 answer | 0

1

answer

Answered
关于fmincon函数中非线性约束函数定义的问题?
典型的《 传递额外参数(超链接,自己点进去看) 》 你的f2是在主代码部分定义的,而自定义函数noncon,只能调用给定的输入,即xx,或者在该函数以及主代码中都声明为全局变量的那些信息。想要调用另外一个句柄,你得在输入位置上追加,比如自定义约束函数改为...

6 mois ago | 0

| accepted