Sigma Notation in Matlab

I'd like to be able to write the following three functions into matlab, but am not sure how to accomplish it (still learning how to do things in MatLab). Could someone please help with how to write the following three equations as individual functions?
<<
<<
>>

4 件のコメント

James Tursa
James Tursa 2015 年 5 月 6 日
Is E a function or a variable? If E is a function, do you know if it is vectorized (i.e., allows for vector or matrix inputs)? This will make a difference in how one might write this (e.g., using loops vs vectorized syntax).
Andrew
Andrew 2015 年 5 月 6 日
It's utilizing data that's in a cube form. i.e., E is the ith row and the jth column of a matrix cube
R is determined by the maximum number of samples where value i is neighbored by value j. so..
Rx = 2(Nx -1)NyNz
Ry = 2Nx(Ny-1)Nz
Rz = 2NxNy(Nz-1)
James Tursa
James Tursa 2015 年 5 月 6 日
So, E is a matrix and E(i,j) is the element in the i'th row and j'th column? And what is R? I had assumed it was a scalar, but now you have Rx, Ry, and Rz listed. How do these relate to R in your sigma formulas?
Andrew
Andrew 2015 年 5 月 6 日
I have the utility that creates a GLCM. This GLCM gives data processed in the X, Y, and Z direction. I guess you could think of the cube as a series of slices stacked together. Row i and column j represent the data at any given point on a slice, and you're right, R is just the number of samples in the cube.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

質問済み:

2015 年 5 月 6 日

コメント済み:

2015 年 5 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by