Gradients
13 ビュー (過去 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!