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 comentarios

James Tursa
James Tursa el 6 de Mayo de 2015
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 el 6 de Mayo de 2015
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 el 6 de Mayo de 2015
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 el 6 de Mayo de 2015
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Mayo de 2015

Comentada:

el 6 de Mayo de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by