Please anyone help me with the error!

 采纳的回答

更多回答(1 个)

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 个评论

I doubt that double() converts symunit variable
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