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 个评论

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).
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)
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?
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 Exchange 中查找有关 MATLAB 的更多信息

提问:

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