| 5 | 1/1 | 返回列表 |
| 查看: 668 | 回復(fù): 4 | ||||
永遠(yuǎn)aa小宇新蟲(chóng) (初入文壇)
|
[求助]
matlab求解方程組的問(wèn)題 已有2人參與
|
|
求解方程組 x^2+x*y+y^2-10=0 x^2*y+x*y^2-y^3+10=0 只取x大于0和其對(duì)應(yīng)的y值,該怎么編程,懇請(qǐng)大神指點(diǎn)一下,謝謝 |
新蟲(chóng) (初入文壇)
木蟲(chóng) (正式寫(xiě)手)
木木蟲(chóng)
|
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ā)自小木蟲(chóng)Android客戶端 |

專(zhuān)家顧問(wèn) (小有名氣)
![]() |
專(zhuān)家經(jīng)驗(yàn): +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]) |
鐵桿木蟲(chóng) (職業(yè)作家)
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 各位老師好,我的一志愿為北京科技大學(xué)085601材料專(zhuān)碩 +7 | Koxui 2026-03-28 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 332求調(diào)劑 +4 | @MZB382400 2026-03-28 | 4/200 |
|
|
[考研] 283求調(diào)劑 +3 | A child 2026-03-28 | 3/150 |
|
|
[考研] 266分,求材料冶金能源化工等調(diào)劑 +7 | 哇呼哼呼哼 2026-03-27 | 9/450 |
|
|
[考研] 085701環(huán)境工程,267求調(diào)劑 +16 | minht 2026-03-26 | 16/800 |
|
|
[考研] 291求調(diào)劑 +15 | hhhhxn.. 2026-03-23 | 21/1050 |
|
|
[考研] 352分 化工與材料 +5 | 海納百川Ly 2026-03-27 | 5/250 |
|
|
[考研] 275求調(diào)劑 +10 | jjjjjjjjjjl 2026-03-27 | 10/500 |
|
|
[考研] 070300化學(xué)求調(diào)劑 +4 | 起個(gè)名咋這么難 2026-03-27 | 4/200 |
|
|
[考研] 265求調(diào)劑11408 +3 | 劉小鹿lu 2026-03-27 | 3/150 |
|
|
[考研] 287求調(diào)劑 +10 | land xuxu 2026-03-26 | 10/500 |
|
|
[考研] 321求調(diào)劑 +6 | Ymlll 2026-03-24 | 6/300 |
|
|
[考研] 081200-11408-276學(xué)碩求調(diào)劑 +3 | 崔wj 2026-03-26 | 3/150 |
|
|
[考研] 297求調(diào)劑 +6 | 田洪有 2026-03-26 | 6/300 |
|
|
[考研] 081700 調(diào)劑 267分 +11 | 迷人的哈哈 2026-03-23 | 11/550 |
|
|
[考研] 一志愿河工大 081700 276求調(diào)劑 +4 | 地球繞著太陽(yáng)轉(zhuǎn) 2026-03-23 | 4/200 |
|
|
[考研] 化學(xué)調(diào)劑一志愿上海交通大學(xué)336分-本科上海211 +4 | 小魚(yú)愛(ài)有機(jī) 2026-03-25 | 4/200 |
|
|
[考研] 332求調(diào)劑 +6 | 032500 2026-03-25 | 6/300 |
|
|
[考研] 求b區(qū)院校調(diào)劑 +4 | 周56 2026-03-24 | 5/250 |
|
|
[考博] 26申博自薦 +3 | whh869393 2026-03-24 | 3/150 |
|