So habe ich diesen Code hier (Für ein elektrisches Problem)Rückwärts Ersatz in Matlab nach dem Finden einer Lösung.
R_1= input('Enter the value of R_1 ');
R_2= input('Enter the value of R_2 ');
R_3= input('Enter the value of R_3 ');
V_1= input('Enter the value of V_1 ');
V_2= input('Enter the value of V_2 ');
V_3= input('Enter the value of V_3 ');
syms V_a
i_1=(V_a-V_1)/R_1;
i_2=(V_a-V_2)/R_2;
i_3=(V_a-V_3)/R_3;
eqn1 = i_1+i_2+i_3==0;
solV_a = solve(eqn1,V_a);
Das alles in Ordnung ist, wie meine letzte Zeile für V_a löst jedoch nach Matlab für V_a löst, ich will Matlab diesen V_a Wert zu sichern ersetzen zurück in i_1, i_2, i_3 und dann den neuen i_1, i_2, i_3 Zahlenwert anzeigen. Ich habe gelernt, dass es in Matlab eine Unterfunktion gibt, aber ich bin mir nicht sicher, wie ich sie in meinen Code implementieren soll.