Is this expression true?

D(i, j)=45.6*10^(-32) If not true,what modification must I do?

5 个评论

Have you any error message?
You can check in Matlab windows command
D(1,1)=45.6*10^(-32)
yes, this error? ??? Subscript indices must either be real positive integers or logicals.
E(i-1, j)= 8.854e-12;
You know that "i-1" is 0 if i is 1. This is not allowed in matlab.
loop starting from 2, therefor 2-1=1. allowed in matlab

请先登录,再进行评论。

回答(1 个)

You write exponential notation in matlab as
D(i,j) = 45.6e-32

3 个评论

Mary Jon
Mary Jon 2013-9-21
编辑:Mary Jon 2013-9-21
ok, and what about this? D(i-1,j) = 45.6e-32, or
D(i-1,j-1) = 45.6e-32,or
D(i,j-1) = 45.6e-32????
What do you want to set? With
D(i,j)
you index a matrix entry. You should describe your whole problem.
I want give these variables E(i, j),E(i+1, j),E(i-1, j),E(i, j+1),E(i, j-1) values as shown in pdf attachment

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Physics 的更多信息

提问:

2013-9-21

Community Treasure Hunt

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

Start Hunting!

Translated by