How can I add query points between two adjacent points of sampled data?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a representative subset of sample points as shown in column A (x), and intend to add query points (evenly) in interval of each two adjacent sample points of column A to make it as shown in column B (Xq).
0 comentarios
Respuesta aceptada
Voss
el 24 de Feb. de 2024
x = [1;3;4;6;10]
n = 4; % number of points to insert in each interval
N = numel(x);
q = linspace(1,N,(n+1)*(N-1)+1);
Xq = interp1(1:N,x,q).'
3 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!