Please anyone help me with the error!

3 次查看(过去 30 天)
Please write the code-Screenshot (14).png

采纳的回答

madhan ravi
madhan ravi 2019-5-28
fprintf('The potential difference is \n')
disp(potential)

更多回答(1 个)

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

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by