楼主: jilindaxue
9024 15

求助:matlab运行时出现??? Error using ==> chol [推广有奖]

11
jilindaxue 发表于 2010-8-5 19:28:13
你好 我调整数据了还是不行 ,是跟我的数据中有负数有关系吗



9# lustboy

12
richardma 发表于 2010-8-6 00:03:32
参考
http://www2.gsu.edu/~mkteer/npdmatri.html
http://answers.yahoo.com/question/index?qid=20080121033439AA90Ptg

According to 4# lustboy

Try changing the precision from double to single (matlab program has to initialize a matrix using the like statement :)
B = zeros(m,n)
By default B is of double precision, so to change it to single precision
A=single(B)

But this is not a generic method, even it could help getting arround your problem, it would possibly not work all the time.

13
lustboy 发表于 2010-8-7 19:46:07
Hessian 矩阵有很多种求法。可考虑用梯度方法计算一下。

14
lustboy 发表于 2010-8-9 11:30:20
跟数据中的负数没有关系,你可以尝试把各变量都除以其标准差,看看没有没改进。

15
byx310 发表于 2013-7-27 14:40:21
richardma 发表于 2010-8-6 00:03
参考
http://www2.gsu.edu/~mkteer/npdmatri.html
http://answers.yahoo.com/question/index?qid=2008012 ...
you are right

16
matlab-007 发表于 2015-2-6 20:47:03
改变一下矩阵的算法

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 13:17