QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 1160|回复: 2
打印 上一主题 下一主题

新人求助~~ Error using ==> newff Input ranges has values

[复制链接]
studyzfr        

6

主题

7

听众

161

积分

自我介绍
世界一直变,变不回从前

群组Matlab讨论组

跳转到指定楼层
1#
发表于 2013-7-3 21:25 |只看该作者 |倒序浏览
国内专业的数学建模实训旧版本的MATLAB没有mapminmax函数,我改用premnmx函数
源程序用mapminmax函数如下:
[inputn,inputps]=mapminmax(input_train);
[outputn,outputps]=mapminmax(output_train);

我把他改为

[inputn,minp,maxp,outputn,mint,maxt]=premnmx(input_train,output_train);

inputn=inputn';   %主要是为了建立2-5-1 BP神经网络 没这句会提示输入矩阵不为两列
net=newff(inputn,outputn,5);

为什么会提示
Error using ==> newff
Input ranges has values in the second column larger in the values in the same row of the first column.

。。。。。

求助~~
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
madio        

3万

主题

1311

听众

5万

积分

自我介绍
数学中国站长

社区QQ达人 邮箱绑定达人 优秀斑竹奖 发帖功臣 风雨历程奖 新人进步奖 最具活力勋章

群组数学建模培训课堂1

群组数学中国美赛辅助报名

群组Matlab讨论组

群组2013认证赛A题讨论群组

群组2013认证赛C题讨论群组

2#
发表于 2013-7-4 06:51 |只看该作者
if any(pr(:,1) > pr(:,2))
  error('Input ranges has values in the second column larger in the values in the same row of the first column.')
end
你看看是不是pr的第一列的元素有比第二列的元素大的情况,第一列是最小值,第二列是最大值

点评

studyzfr  检查后改对了,谢谢~  详情 回复 发表于 2013-7-4 13:06
数学建模社会化
回复

使用道具 举报

studyzfr        

6

主题

7

听众

161

积分

自我介绍
世界一直变,变不回从前

群组Matlab讨论组

3#
发表于 2013-7-4 13:06 |只看该作者
madio 发表于 2013-7-4 06:51
if any(pr(:,1) > pr(:,2))
  error('Input ranges has values in the second column larger in the value ...

检查后改对了,谢谢~
回复

使用道具 举报

qq
收缩
  • 电话咨询

  • 04714969085

关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

手机版|Archiver| |繁體中文 手机客户端  

蒙公网安备 15010502000194号

Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

GMT+8, 2025-8-15 02:04 , Processed in 0.617384 second(s), 52 queries .

回顶部