3D Matrix interpolate values and plot

Hey :)
I am new and not very familiar with matlab!
For my thesis I am measuring stiffness values in 30 different positions in the working space of a robot(2mx4mx4m). I would like to add those values into a 3D matrix with a grid of 10mm, interpolate the other values, give colors to the values and plot the whole 3D matrix. So in the End I have a good overview in which areas the stiffness is high/low.
Could anyone help me:
*How to set up a 3D matrix? *How to fill in my measured values in the desired position of the matrix? *Interpolate the missing values? *Give colors to the values? *Plot the 3D Matrix?
Than you very much for your help :)

댓글 수: 2

KSSV
KSSV 2016년 12월 6일
How you will calculate stiffness? Where is stiffness?
Lukas Eich
Lukas Eich 2016년 12월 6일
k=F/dx ? But the calculation is not that important, the stiffness will be represented by a value like 2.523

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

답변 (1개)

KSSV
KSSV 2016년 12월 6일

0 개 추천

Robo = [2 4 4] ;
dx = 0.5 ; dy = 0.5 ; dz = 0.5 ;% you can pick your desired resolution (10mm in m)
x = 0:dx:Robo(1) ;
y = 0:dx:Robo(2) ;
z = 0:dx:Robo(3) ;
[X,Y,Z] = ndgrid(x,y,z) ;
%%some random data
K = rand(size(X)) ;
for i = 1:size(X,3)
surf(X(:,:,i),Y(:,:,i),Z(:,:,i),K(:,:,i)) ;
hold on
end
Read about interp2, this is used for 2D inteprolation. Also check slice.

카테고리

도움말 센터File Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

2016년 12월 6일

답변:

2016년 12월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by