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 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