필터 지우기
필터 지우기

Index problem help?

조회 수: 2 (최근 30일)
JL555
JL555 2015년 9월 22일
편집: JL555 2015년 9월 23일
for i=1:n
for j=1:n
Pl=P(i)*B(i)(j)*P(j);
seems like i'm getting error with writing B(i)(j)...How will i code it in another way?

채택된 답변

Guillaume
Guillaume 2015년 9월 22일
편집: Guillaume 2015년 9월 22일
Possibly, you meant to write
Pl(i,j) = P(i)*B(i,j)*P(j)
Or possibly, you meant something else entirely. It's impossible to tell with so little information.
In any case, you should go through the Getting Started tutorial.
Most likely also, the loops are not needed and it can all be done with matrix operations.
  댓글 수: 17
Walter Roberson
Walter Roberson 2015년 9월 22일
I am not familiar with economic load dispatch.
Note: I am not "dude". Or "man".
JL555
JL555 2015년 9월 23일
편집: JL555 2015년 9월 23일
ok ..anyway thanks for your help really appreciate it.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by