∑_(u=1)^(s​u-2)▒∑_(v=​1)^sv▒δ(i,​j)..how to write this equation in for loop?

∑_(u=1)^(su-2)▒∑_(v=1)^sv▒δ(i,j)...here the summation lower limit is u=1 and upper limit is su-2 similar to next summation form....i didnt know is my matlab R2009b contains symbolic tool or not. can u tel this equation in "for" loop.

10 件のコメント

Dhines
Dhines 2012 年 10 月 12 日
href="http://www.codecogs.com/eqnedit.php?latex=\sum_{u=1}^{su-2} \cdot \sum_{v=1}^{sv}\cdot \delta \left ( Fh(u,v)=i,Fh(u@plus;1,v)=j)" target="_blank" rel="nofollow noopener noreferrer"<img src="http://latex.codecogs.com/gif.latex?\sum_{u=1}^{su-2} \cdot \sum_{v=1}^{sv}\cdot \delta \left ( Fh(u,v)=i,Fh(u+1,v)=j)" title="\sum_{u=1}^{su-2} \cdot \sum_{v=1}^{sv}\cdot \delta \left ( Fh(u,v)=i,Fh(u+1,v)=j)" /></a>
Dhines
Dhines 2012 年 10 月 12 日
∑ u = 1 s u - 2 ⋅ ∑ v = 1 s v ⋅ δ ( F h ( u , v ) = i , F h ( u + 1 , v ) = j )
Walter Roberson
Walter Roberson 2012 年 10 月 12 日
What does δ mean in this context? What does Fh(u,v)=i mean in this context?
Walter Roberson
Walter Roberson 2012 年 10 月 12 日
The fastest way to determine whether your MATLAB contains an installed and licensed Symbolic Toolbox is to enter the command
syms x
If it complains that syms is not found then the toolbox is either not installed or not licensed.
Jan
Jan 2012 年 10 月 12 日
Now explain, what the delta is in your case.
Dhines
Dhines 2012 年 10 月 12 日
in my model..going to calculate horizontal and vertical array of my 8x8 extracted imag. here 'Fh' horizontal one.u and v is co-ordinates Fh(u,v).
Dhines
Dhines 2012 年 10 月 12 日
in my eqn delta contains inside of arguments i and j. when delta(i,j)=1 its satisfied some condition. jus i named delta is my function that contains arguments i and j thats all about delta in my module
Dhines
Dhines 2012 年 10 月 15 日
pls...anybody answer my question?
Jan
Jan 2012 年 10 月 15 日
I still cannot read the magic characters in the question.
Walter Roberson
Walter Roberson 2012 年 10 月 15 日
What does F h ( u , v ) = i mean in the context of the delta function?
Does δ ( F h ( u , v ) = i , F h ( u + 1 , v ) = j ) mean the same as
1 if (Fh(u,v) == i & Fh(u+1,v) == j)
0 otherwise
?

サインインしてコメントする。

 採用された回答

Björn
Björn 2012 年 10 月 15 日
編集済み: Björn 2012 年 10 月 15 日

0 投票

It seems that the delta is the Kronecker Delta. In that case ou can make the following for-loop for this:
result=0;
for u=1:su-2
for v=1:sv
if Fh(u,v) == Fh(u+1,v)
result=result+1;
end
end
end
result
Make sure that the matrix Fh is defined beforehand
The value of 'result' after the loops is the answer of the double sum.

2 件のコメント

Dhines
Dhines 2012 年 10 月 17 日
did u read my question well??...<a href="http://www.codecogs.com/eqnedit.php?latex=\sum_{u=1}^{su-2}\sum_{v=1}^{sv}\delta (Fh(u,v)=i,Fh(u@plus;1,v)=j)" target="_blank" rel="nofollow noopener noreferrer"><img src="http://latex.codecogs.com/gif.latex?\sum_{u=1}^{su-2}\sum_{v=1}^{sv}\delta (Fh(u,v)=i,Fh(u+1,v)=j)" title="\sum_{u=1}^{su-2}\sum_{v=1}^{sv}\delta (Fh(u,v)=i,Fh(u+1,v)=j)" /></a>
Walter Roberson
Walter Roberson 2012 年 10 月 17 日

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

質問済み:

2012 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by