필터 지우기
필터 지우기

How to normalize data to loop variable?

조회 수: 2 (최근 30일)
Madan Kumar
Madan Kumar 2019년 6월 28일
편집: Madan Kumar 2019년 6월 29일
Hi,
I have about 100 equations and I have to normalize sum of all to loop variable.
For simpliciyt, let say I have 3 equations, S1(i)=10*i*(i*i+2)+(2*i+5);S2(i)=(i^2-1)*(i+1);S3(i)=(i^2-i-1); I need to normalize sum of S1(i),S2(i) and S3(i) to (2*i+1) for each i. Any help.
example.
for i=1,10
S1(i)=10*i*(i*i+2)+(2*i+5);
S2(i)=(i^2-1)*(i+1);
S3(i)=(i^2-i-1);
S(i)=S1(i)+S2(i)+S3(i);
end
Now S(i) has to be normalized to (2*i+1) for each i. I checked normalization also, however, I didn't find any. Need help.
  댓글 수: 2
Adam
Adam 2019년 6월 28일
I don't understand what you mean by normalising the sum of those values to 2*i + 1 for each i. Isn't S(i), which is your sum, just a scalar? In which case it isn't meaningful to normalise a scalar to something, especially not independently for each value in the array.
Madan Kumar
Madan Kumar 2019년 6월 29일
편집: Madan Kumar 2019년 6월 29일
Yeah, may be you are right but this is physics based equation and I have to normalize as above.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by