how to find output variables when input variables are continuously changing ?

1 vue (au cours des 30 derniers jours)
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 commentaires
Star Strider
Star Strider le 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.
The sym function willl likely be worth considering.
Engineer Batoor khan mummand
hi dear:
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];
where
i=0;
Tw0 = 20;
m=100;
n=40;
k=4180;
find Tw(i+1)?
this is my code
syms p
T = zeros(12,numel(I));
for i = 1:numel(I)
M = [5*k, -4*k, -k, 0, 0, 0;
1, -(1+m), 0, 0, 0, 0;
1, 0, -(2+I(i)), 1, 0, 0;
0, 0, -1, 2, -1, 0;
0, 0, 0, -1, 2, 0;
0, 1, 0, 0, 0, -40*k*m];
V = [(1+k)*I(i);
-m*Tw1-(4+m)*I(i);
-(Ta(i)+2*m)*I(i);
3*n*I(i);
3*I(i);
(1+40*k*m)*Tw1];
T(:,i) = M\V;
end
T2 = T(1,:);
Tb = T(2,:);
Tc = T(3,:);
T1 = T(4,:);
Tg = T(5,:);
Tw2 = T(6,:);
disp(T)
my question is to find
Tw(i+1)=?
thank you so much dear.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by