How to interpolate one axis in a 3D data?

조회 수: 4 (최근 30일)
Ahmed
Ahmed 2024년 3월 4일
댓글: Matt J 2024년 3월 4일
I have a data dats.mat attached here in which ss is of size 139 48 9. Here 9 is number of vertical layers and I want to digitize and interplotate 9 layers say equal to 100 layers (e.g., 1:100). How can I interpolate only 1D dimension in MATLAB keep \ing all the others same?

채택된 답변

Matt J
Matt J 2024년 3월 4일
편집: Matt J 2024년 3월 4일
load dats;
F=griddedInterpolant(ss);
ss=F({1:139,1:48, linspace(1,9,100)});
  댓글 수: 3
Ahmed
Ahmed 2024년 3월 4일
@Matt J Thanks if I use this ss=imresizen(ss,[1,1,100]);, 9 will be multiplied with 100 and there will 900 layers e.g., final size will 139 48 900. Is it like this?
Matt J
Matt J 2024년 3월 4일
Sorry, no, I meant
ss=imresizen(ss,[1,1,100/9])

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by