how to write this code ?
이전 댓글 표시
답변 (2개)
Sam Chak
2022년 4월 9일
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
ahmed nasser
2022년 4월 9일
ahmed nasser
2022년 4월 9일
Sam Chak
2022년 4월 9일
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
2022년 4월 9일
Sam Chak
2022년 4월 9일
You are welcome. Take your time to explore MATLAB.
Torsten
2022년 4월 9일
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 ?
카테고리
도움말 센터 및 File Exchange에서 Power Converters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
