how to find output variables when input variables are continuously changing ?
1 次查看(过去 30 天)
显示 更早的评论
Hi all;
i want to find these six unknowns by using these six equations which are given below for all values of I and Ta :
i=1
Tw(i)=20
syms Tg T1 T2 Tb Tc Tw(i+1)
I=[116 207 414 611 909 1009 951 909 805 615 311 120];
Ta=[29 30 31 32 33 34 35 37 36 35 34 33];
m=100;
n=40;
k=4180;
E1=I+k*I+k(Tc-T2)==4*k*(T2-Tb);
E2=m.*I+4.*I+(T2-Tb)==m*(Tb-Tw1);
E3=2*m.*I+(T1-Tc)==(Tc-Ta)))*I+(Tc-T2);
E4=3*n*I+(Tg-T1)==(T1-Tc);
E5=3*I==(Tg-Ta)+(Tg-T1);
E6=(Tb-Tw(i+1))==(40*k*m*(Tw(i+1)-Tw(i));
sol = solve([E1, E2, E3,E4,E5,E6],[T2,Tb,T1,Tc,Tg,Tw2]);
T2 = sol.T2
Tb = sol.Tb
Tg = sol.Tg
T1 = sol.T1
Tc = sol.Tc
Thank you so much from all of you dear.
2 个评论
Star Strider
2020-10-17
There are so many errors in your code that I stopped correcting them, since I cannot figure out what the dimensions to the arrays are or what the code does.
If you correct them to at least eliminate the errors so the code actually runs, we might be able to help you with any other problems that may still exist.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!