Akzeptierte Antwort

madhan ravi
madhan ravi am 28 Mai 2019

1 Stimme

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

Weitere Antworten (1)

KSSV
KSSV am 28 Mai 2019

0 Stimmen

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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by