how to write this code ?
Afficher commentaires plus anciens
Réponses (2)
Sam Chak
le 9 Avr 2022
Looks like the Kirchhoff's voltage law.
Are you looking for something like this?
syms Vab Vbc Vca
eqn = Vab + Vbc + Vca == 0
S = solve(eqn, Vca)
5 commentaires
ahmed nasser
le 9 Avr 2022
ahmed nasser
le 9 Avr 2022
Sam Chak
le 9 Avr 2022
Are you looking for something like the user input?
prompt1 = input('What is the value of Vab? ');
Vab = prompt1;
prompt2 = input('What is the value of Vbc? ');
Vbc = prompt2;
Vca = - (Vab + Vbc)
ahmed nasser
le 9 Avr 2022
Sam Chak
le 9 Avr 2022
You are welcome. Take your time to explore MATLAB.
Torsten
le 9 Avr 2022
What is the code supposed to do with the three V-values ?
You can write
syms V_ab V_bc V_ca
eqn = V_ab + V_bc + V_ca == 0
result = solve(eqn,V_ca)
And now ?
1 commentaire
ahmed nasser
le 9 Avr 2022
Catégories
En savoir plus sur Power Converters dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
