採用された回答

madhan ravi
madhan ravi 2019 年 5 月 28 日

1 投票

fprintf('The potential difference is \n')
disp(potential)

その他の回答 (1 件)

KSSV
KSSV 2019 年 5 月 28 日

0 投票

potential = double(potential) ;
fprintf('the potential difference is = %f\n',potential) ;
Your variable potential is in syms...convert it to double. Read about double.

3 件のコメント

madhan ravi
madhan ravi 2019 年 5 月 28 日
I doubt that double() converts symunit variable
Gaurav Srivastava
Gaurav Srivastava 2019 年 5 月 28 日
Still not working sir!Screenshot (15).png
KSSV
KSSV 2019 年 5 月 28 日
You should not attach code as image.......copy the code here.

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

製品

リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by