声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1461|回复: 3

[编程技巧] 请高手相助——用matlab求回归方程极值!谢谢!

[复制链接]
发表于 2007-4-2 10:56 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
大家好,我现在有一个回归方程,Y=88.7+1.03A-0.75C-2.76A^2-2.33B*C。其中A的范围是(180-210),B的范围是(300-350),C的范围是(30-40),请问可否用matlab求得Y的极值啊? 可否给个程序? 谢谢大家了!
回复
分享到:

使用道具 举报

发表于 2007-4-2 11:38 | 显示全部楼层
help fmincon 试试.
 楼主| 发表于 2007-4-2 16:10 | 显示全部楼层

回复 #2 xjzuo 的帖子

不行啊,
Error using ==> fmincon
FMINCON cannot continue because user supplied objective function failed with the following error:
Error using ==> inlineeval
Error in inline expression ==> -88.7-1.03A+0.75C+2.76A2+2.33B*C       
??? Error: Missing MATLAB operator.
发表于 2007-4-2 18:19 | 显示全部楼层
原帖由 yiumao 于 2007-4-2 16:10 发表
不行啊,
Error using ==> fmincon
FMINCON cannot continue because user supplied objective function failed with the following error:
Error using ==> inlineeval
Error in inline expression  ...



建议先阅读最基本的matlab书籍,了解变量名的用法、相乘的写法还有点运算与矩阵运算的区别
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-21 15:45 , Processed in 0.053194 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表