how to find output variables when input variables are continuously changing ?
1 view (last 30 days)
Show older comments
Engineer Batoor khan mummand
on 17 Oct 2020
Commented: Engineer Batoor khan mummand
on 19 Oct 2020
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 Comments
Star Strider
on 17 Oct 2020
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.
Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!