| 5 | 1/1 | 返回列表 |
| 查看: 670 | 回復(fù): 4 | ||||
永遠(yuǎn)aa小宇新蟲 (初入文壇)
|
[求助]
matlab求解方程組的問題 已有2人參與
|
|
求解方程組 x^2+x*y+y^2-10=0 x^2*y+x*y^2-y^3+10=0 只取x大于0和其對應(yīng)的y值,該怎么編程,懇請大神指點一下,謝謝 |
新蟲 (初入文壇)
木蟲 (正式寫手)
木木蟲
|
syms x,y ;[x,y]=solve('x^2+x*y+y^2-10=0','??x^2*y+x*y^2-y^3+10=0','x','y'); 發(fā)自小木蟲Android客戶端 |

專家顧問 (小有名氣)
![]() |
專家經(jīng)驗: +8 |
|
function question_8 %2016-11-23 clear;clc %plot functions to find out the potential solvetion which can be used as the initial point of fsolve. p1=ezplot('x^2+x*y+y^2-10');hold on p1.LineStyle = '-'; p1.Color = 'r'; p1.LineWidth=1.5; p2=ezplot('x^2*y+x*y^2-y^3+10');hold off p2.LineStyle = '-'; p2.Color = 'b'; p2.LineWidth=1.5; title('f1: x^2+x*y+y^2=10 f2: x^2*y+x*y^2-y^3=-10') legend({'f1','f2'},'FontSize',13); legend('boxoff'); grid minor %accodting to the figure, the potential solution in the area, where x>0, is around (0.8,2.6), let's set x0=[1 2.5]; fsolve(@(x) [x(1)^2+x(1)*x(2)+x(2)^2-10;x(1)^2*x(2)+x(1)*x(2)^2-x(2)^3+10;],[1 2.5]) |
鐵桿木蟲 (職業(yè)作家)
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 300求調(diào)劑,材料科學(xué)英一數(shù)二 +9 | leaflight 2026-03-24 | 9/450 |
|
|---|---|---|---|---|
|
[考研] 086000生物與醫(yī)藥調(diào)劑 +5 | Feisty。 2026-03-28 | 9/450 |
|
|
[考研] 085600,專業(yè)課化工原理,321分求調(diào)劑 +5 | 大饞小子 2026-03-28 | 5/250 |
|
|
[考研] 0856求調(diào)劑 +7 | 楒桉 2026-03-28 | 7/350 |
|
|
[考研] 調(diào)劑考研 +3 | 王杰一 2026-03-29 | 3/150 |
|
|
[考研] 320分,材料與化工專業(yè),求調(diào)劑 +9 | 一定上岸aaa 2026-03-27 | 13/650 |
|
|
[考研] 求調(diào)劑 +3 | QiMing7 2026-03-25 | 4/200 |
|
|
[考研] 346求調(diào)劑 一志愿070303有機化學(xué) +3 | 蘿卜燉青菜 2026-03-28 | 3/150 |
|
|
[考研] 317求調(diào)劑 +6 | 十閑wx 2026-03-24 | 6/300 |
|
|
[考研] 材料277求調(diào)劑 +7 | min3 2026-03-24 | 7/350 |
|
|
[考研] 339求調(diào)劑,想調(diào)回江蘇 +6 | 烤麥芽 2026-03-27 | 8/400 |
|
|
[考研] 265求調(diào)劑11408 +3 | 劉小鹿lu 2026-03-27 | 3/150 |
|
|
[考研] 一志愿上海理工能源動力(085800)310分求調(diào)劑 +3 | zhangmingc 2026-03-27 | 4/200 |
|
|
[考研] 考研調(diào)劑 +4 | Sanmu-124 2026-03-26 | 4/200 |
|
|
[考研] 085600材料與化工調(diào)劑 +10 | A-哆啦Z夢 2026-03-23 | 16/800 |
|
|
[考研] 材料調(diào)劑 +8 | 匹克i 2026-03-23 | 8/400 |
|
|
[考研] 【2026考研調(diào)劑】制藥工程 284分 求相關(guān)專業(yè)調(diào)劑名額 +4 | 袁奐奐 2026-03-25 | 8/400 |
|
|
[考研] 一志愿吉林大學(xué)材料與化工303分求調(diào)劑 +4 | 為學(xué)666 2026-03-24 | 4/200 |
|
|
[考研] 340求調(diào)劑 +5 | 話梅糖111 2026-03-24 | 5/250 |
|
|
[考研] 284求調(diào)劑 +3 | yanzhixue111 2026-03-23 | 6/300 |
|