채택된 답변

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

질문:

2019년 5월 28일

댓글:

2019년 5월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by