# Surface area of a 3D-plot from a matrix.

조회 수: 15(최근 30일)
Gabriel 2014년 2월 24일
편집: Walter Roberson 2014년 2월 24일
Hi guys. I'm trying to calculate the area of a surface. My problem is something like this:
I have some images in 8bits ... something like this one:
I made a Java program so I can turn those images into a matrix and open it with MatLab.
When I run my program for this image it returns me something like this:
matrix = [255,255,255,255,255;
255,195,195,195,255;
255,195,0,195,255;
255,195,195,195,255;
255,255,255,255,255];
Then I can put this matrix in matlab and use the function surf. So I get something like this:
Now comes my problem. Is there any way to calculate the surface area of this 3d-plot? Can be anything that returns me a quantitative value for this surface area.
Thanks.
ps: sorry for my english, im from Brazil.

댓글을 달려면 로그인하십시오.

### 답변(2개)

Thomas 2014년 2월 24일
I do not think MALTAB has a built-in function. (I might be wrong though) However a similar question has been answered here http://www.mathworks.com/matlabcentral/answers/35501-surface-area-from-a-z-matrix
##### 댓글 수: 0표시숨기기 이전 댓글 수: -1

댓글을 달려면 로그인하십시오.

Gabriel 2014년 2월 24일
Not necessarily need to be a built-in function.
I want to know is there any way to calculate this ... even if I have to create some kind of mathematical function to solve this problem.
In any case I'll take a look at the thread you pointed me.
Grateful.

댓글을 달려면 로그인하십시오.

### 범주

Find more on Matrix Indexing in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by