How to remove this error? The grid vectors must contain unique points.

조회 수: 2 (최근 30일)
Nisar Ahmed
Nisar Ahmed 2021년 2월 27일
댓글: Nisar Ahmed 2021년 3월 3일
Hi I am using this code...
TVD = TVD(2083:10150);
TWT = TWT(2083:10150);
IntVP = IntVP(2083:10150);
IntVS = IntVS(2083:10150);
RhoG = RhoG(2083:10150);
regtime = TWT(1):2:TWT(end); % Regularization of time (TWT) in sec.
% Interpolation of VP, VS, Rho with respect to regtime.
regvp = interp1(TWT, IntVP, regtime, 'linear', 'extrap');
regvs = interp1(TWT, IntVS, regtime, 'linear', 'extrap');
regrhoG = interp1(TWT, RhoG, regtime, 'linear', 'extrap');
regTVD = interp1(TWT, TVD, regtime, 'linear', 'extrap');
regtime=regtime/1000; % time in seconds
and facing this error. How can I fix it.

답변 (1개)

Jan
Jan 2021년 2월 27일
The error message tells you, that TWT does not contain unique values. It is impossible to gues, how you want to solve this problem, because this depends on the nature of your data.
  댓글 수: 1
Nisar Ahmed
Nisar Ahmed 2021년 3월 3일
Hi Jan
Ultimately, I want to use these data to compute say RPP as a function of angle of incident. After I will convolve RPP with wavelet and output (seismic gathers) will be plotted against regtime. So that's why I need regular time and all the other data regularized with respect to time interval.

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

카테고리

Help CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by