| 查看: 648 | 回复: 7 | |||
| 当前主题已经存档。 | |||
| 【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 yatlan 的 4 个金币 | |||
[交流]
【求助】matlab 求解方程组时 出错,非常急,好心人帮忙!
|
|||
|
clear; syms a b c d e cl cz ll lz cll lll czl lzl; a=ll*lz*cl*cz; b=ll*cl+lz*cz+lz*cl; c=ll*lz*cl; d=lz; e=(b+(b^2-4*a)^(1/2))/2; cll=(a*(a-e^2))/(e*(a*d-c*e))-3.071; lll=(a*d-c*e)/(a-e^2)-7.533; czl=(a-e^2)/(c-d*e)-1.313; lzl=(e*(c-d*e))/(a-e^2)-3.222; solve(cll,lll,czl,lzl); 如上的程序在最后solve 求解时提示 ??? Error using ==> subsref Index exceeds matrix dimensions. Error in ==> sym.subsref at 16 y = builtin('subsref',struct(x),a); Error in ==> solve at 191 S.(char(symvars(j))) = R(:,j); 再线等................! 非常感谢 |
» 猜你喜欢
售T0P一区SCI文章,我:8O5.51.O.54,科目齐全,可+急
已经有4人回复
大家好,校样时候的紧急求助,请各位帮帮忙了
已经有7人回复
售T0P一区SCI文章,我:8O5.51.O.54,科目齐全,可+急
已经有3人回复
昨日死,今日生
已经有7人回复
售T0P一区SCI文章,我:8O5.51.O.54,科目齐全,可+急
已经有7人回复
有没有同学在用一款线上科研辅助平台?
已经有3人回复
27年博士招生信息
已经有13人回复
植酸TLC薄层色谱爬板
已经有6人回复
单宁酸
已经有3人回复
求助难溶化合物在DMSO+三氟乙酸中的氢谱分析
已经有7人回复
sorry for some confusiion?
★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
sunxiao(金币+2,VIP+0):thank you for your suggestions 10-3 00:13
小木虫(金币+0.5):给个红包,谢谢回帖交流
sunxiao(金币+2,VIP+0):thank you for your suggestions 10-3 00:13
|
1. seems using solve(cll,lll,czl,lzl, 'cz', 'cl', 'lz', 'll') have tried a simple case like what you are going to do. it works. the code is as follows: clear; clc; syms a u v; l=a*u^2 + v^2; m=u-v-1; n=a^2-5*a+6; A=solve(l,m,n, 'a','u','v'); therefore, it seems that your equations are too complicated for the matlab. maybe, the other approaches had to be considered, such as simplify your equations first. anyway, show it up here if you solve the problem. good luck. again: if you remove only one denominator from any one of your four equations, the code can run through to the end after replacing the solve function with the one given above. so, you had to simplify your equations first. [ Last edited by bote on 2009-10-2 at 12:27 ] |
2楼2009-10-02 06:28:38
buffalo7239
至尊木虫 (著名写手)
- 应助: 11 (小学生)
- 金币: 18713.3
- 散金: 184
- 红花: 7
- 帖子: 2503
- 在线: 347小时
- 虫号: 591173
- 注册: 2008-09-02
- 性别: GG
- 专业: 光学
3楼2009-10-02 08:23:25
buffalo7239
至尊木虫 (著名写手)
- 应助: 11 (小学生)
- 金币: 18713.3
- 散金: 184
- 红花: 7
- 帖子: 2503
- 在线: 347小时
- 虫号: 591173
- 注册: 2008-09-02
- 性别: GG
- 专业: 光学
4楼2009-10-02 08:26:56
5楼2009-10-02 10:46:28
buffalo7239
至尊木虫 (著名写手)
- 应助: 11 (小学生)
- 金币: 18713.3
- 散金: 184
- 红花: 7
- 帖子: 2503
- 在线: 347小时
- 虫号: 591173
- 注册: 2008-09-02
- 性别: GG
- 专业: 光学
6楼2009-10-03 09:00:50

7楼2009-10-03 10:01:20
8楼2009-10-03 21:08:37











回复此楼