24小时热门版块排行榜    

查看: 534  |  回复: 1

763443895

银虫 (初入文坛)

[求助] 变步长的非线性方程组求解

function y=t1(x)
%%%%%%%中间变量%%%%%%%%%%%%%%%%%%%
M=[cosd(x(1)-x(2))+cosd(x(1))];
N=[sind(x(1)-x(2))+sind(x(1))];  
k=x(1)/sind(34.32);                 
q=[cosd(x(4)+x(5)-63.77)+cosd(x(4)+24.81)];
w=[sind(x(4)+x(5)-63.77)+sind(x(4)+24.81)];
e=x(4)/sind(48.743);     
g=x(1)-x(2)+66.793;
h=x(4)+x(5)-63.77;
%%%%%%%   6个非线性方程组  %%%%%%%%%%%
y(1)=M+cosd(x(6))*[-sind(e)*q+cosd(e)*w]-sind(x(6))*[cosd(e)*q+sind(e)*w];
y(2)=cosd(x(3))*[sind(k)*M-cosd(k)*N]-sind(x(3))*[-cosd(k)*M-sind(k)*N]-q;
y(3)=sind(x(3))*[sind(k)*M-cosd(k)*N]+cosd(x(3))*[-cosd(k)*M-sind(k)*N]-sind(x(6))*[-sind(e)*q+cosd(e)*w]-cosd(x(6))*[cosd(e)*q+sind(e)*w];
y(4)=cosd(g)+cosd(x(6))*[sind(h)*sind(e)+sind(h)*cosd(e)]-sind(x(6))*[sind(e)*sind(h)+cosd(e)*cosd(h)];
y(5)=cosd(x(3))*(cosd(k)*sind(g)-sind(k)*cosd(g))+sind(x(3))*(sind(g)*sind(k)+cosd(g)*cosd(k))-cosd(h);
y(6)=cosd(x(3))*(sind(k)*sind(g)+cosd(k)*cosd(g))-sind(x(3))*(sind(g)*cosd(k)-sind(g)*cosd(k))-sind(x(6))*(sind(e)*cosd(h)+sind(h)*cosd(e))
         -cosd(x(6))*(sind(h)*sind(e)+cosd(e)*cosd(h));

6个未知数,假设已知6个未知数的一组解为[3,4,5,6,3,4],
想让x(3)按照步长为1求解其他5个参数!!!
主程序该怎么写,新手,求大神帮忙,
已经知道用fsolve进行求解,可是结果不是想要的
结果格式应该是:
x(1) 3
x(2) 4
x(3) 5 4 3 2 1
x(4) 6
x(5) 3
x(6) 4
回复此楼

» 猜你喜欢

机械设计制造及其自动化
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

是最后

新虫 (初入文坛)

请问这类问题解决了吗?,我也遇到了相同的
2楼2019-08-11 15:37:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 763443895 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿西安交通大学材料工程专业 282分求调剂 +10 枫桥ZL 2026-03-18 12/600 2026-03-21 22:02 by peike
[考研] 0703化学调剂 +11 妮妮ninicgb 2026-03-15 15/750 2026-03-21 19:15 by ColorlessPI
[考研] 材料与化工(0856)304求B区调剂 +3 邱gl 2026-03-20 7/350 2026-03-21 19:05 by 15709483992
[考研] 【考研调剂】化学专业 281分,一志愿四川大学,诚心求调剂 +11 吃吃吃才有意义 2026-03-19 11/550 2026-03-21 18:23 by 学员8dgXkO
[考研] 278求调剂 +9 烟火先于春 2026-03-17 9/450 2026-03-21 17:47 by 学员8dgXkO
[考研] 302求调剂 +12 呼呼呼。。。。 2026-03-17 12/600 2026-03-21 17:29 by ColorlessPI
[考研] 266求调剂 +3 哇呼哼呼哼 2026-03-20 3/150 2026-03-21 16:46 by barlinike
[考研] 268求调剂 +9 简单点0 2026-03-17 9/450 2026-03-21 15:37 by lature00
[考研] 295求调剂 +4 一志愿京区211 2026-03-18 6/300 2026-03-20 23:41 by JourneyLucky
[考研] 一志愿中南化学(0703)总分337求调剂 +8 niko- 2026-03-19 9/450 2026-03-20 21:57 by luoyongfeng
[考研] 求调剂一志愿南京航空航天大学289分 +3 @taotao 2026-03-19 3/150 2026-03-20 21:34 by JourneyLucky
[考研] 一志愿西南交通 专硕 材料355 本科双非 求调剂 +5 西南交通专材355 2026-03-19 5/250 2026-03-20 21:10 by JourneyLucky
[考研] 一志愿武理材料工程348求调剂 +3  ̄^ ̄゜汗 2026-03-19 4/200 2026-03-20 21:01 by zhukairuo
[考研] 一志愿西安交通大学 学硕 354求调剂211或者双一流 +3 我想要读研究生 2026-03-20 3/150 2026-03-20 20:13 by JourneyLucky
[考研] 一志愿吉林大学材料学硕321求调剂 +11 Ymlll 2026-03-18 15/750 2026-03-20 19:40 by 丁丁*
[考研] 材料学硕318求调剂 +5 February_Feb 2026-03-19 5/250 2026-03-19 23:51 by 23Postgrad
[考研] 085601求调剂 +4 Du.11 2026-03-16 4/200 2026-03-17 17:08 by ruiyingmiao
[考研] 有没有道铁/土木的想调剂南林,给自己招师弟中~ +3 TqlXswl 2026-03-16 7/350 2026-03-17 15:23 by TqlXswl
[考研] 考研调剂 +3 淇ya_~ 2026-03-17 5/250 2026-03-17 09:25 by Winj1e
[考研] 0856求调剂 +3 刘梦微 2026-03-15 3/150 2026-03-16 10:00 by houyaoxu
信息提示
请填处理意见