Is this expression true?

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

댓글 수: 5

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

댓글을 달려면 로그인하십시오.

답변 (1개)

Simon
Simon 2013년 9월 21일

0 개 추천

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????
Simon
Simon 2013년 9월 21일
What do you want to set? With
D(i,j)
you index a matrix entry. You should describe your whole problem.
Mary Jon
Mary Jon 2013년 9월 21일
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