Gradients
조회 수: 17 (최근 30일)
이전 댓글 표시
I have 4 different arrays: a time array, an array of x locations, an array of y-locations, and 2D array of pressure values corresponding to the times and locations. The x and y locations are irregularly spaced. I would like to extract from the data pressure gradients.
I was considering fitting a function to the values, but I am even unsure how to do this with irregular locations.
Thanks for your help.
댓글 수: 0
답변 (1개)
Sean de Wolski
2011년 12월 1일
You could use triscatteredinterp to interpolate onto a regular grid and then calculate the gradients with MATLAB's builtin gradient function.
doc triscatteredinterp
doc gradient
doc meshgrid
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!