Please anyone help me with the error!

1 view (last 30 days)

Accepted Answer

madhan ravi
madhan ravi on 28 May 2019
fprintf('The potential difference is \n')
disp(potential)

More Answers (1)

KSSV
KSSV on 28 May 2019
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 Comments
KSSV
KSSV on 28 May 2019
You should not attach code as image.......copy the code here.

Sign in to comment.

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!