how to write this code ?

2 件のコメント

Walter Roberson
Walter Roberson 2022 年 4 月 9 日
What code?
ahmed nasser
ahmed nasser 2022 年 4 月 9 日
how to make this as a code on matlap ?

サインインしてコメントする。

回答 (2 件)

Sam Chak
Sam Chak 2022 年 4 月 9 日

0 投票

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
ahmed nasser 2022 年 4 月 9 日
@Sam Chak yes.this what i'm looking for
ahmed nasser
ahmed nasser 2022 年 4 月 9 日
@Sam Chak I want an initial code that deduces the third voltage after reading from the sensors
Sam Chak
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
ahmed nasser 2022 年 4 月 9 日
@Sam Chak Thank you very much ..Mr. Sam
Sam Chak
Sam Chak 2022 年 4 月 9 日
You are welcome. Take your time to explore MATLAB.

サインインしてコメントする。

Torsten
Torsten 2022 年 4 月 9 日

0 投票

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 件のコメント

ahmed nasser
ahmed nasser 2022 年 4 月 9 日
@Torsten I want an initial code that deduces the third voltage after reading from the sensors

サインインしてコメントする。

カテゴリ

質問済み:

2022 年 4 月 9 日

コメント済み:

2022 年 4 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by