vq = interp1(x, v, xq)
vq = interp1(x, v, xq, 'linear')
vq = interp1(v, xq)
vq = interp1(v, xq, 'linear')
| Paramètre | Description |
|---|---|
| x | Points d'échantillonnage : vecteur. |
| v | Valeurs d'échantillonnage : vecteur, matrice. |
| xq | Points de requête : scalaire, vecteur, matrice. |
| Paramètre | Description |
|---|---|
| vq | Valeurs interpolées : scalaire, vecteur, matrice. |
vq = interp1(x, v, xq) retourne les valeurs interpolées d'une fonction 1-D à des points de requête spécifiques en utilisant l'interpolation linéaire.
f = figure();
v = [0 1.41 2 1.41 0 -1.41 -2 -1.41 0];
xq = 1.5:8.5;
vq = interp1(v,xq);
plot(1:9, v, 'o', xq, vq, '*');
legend('v','vq');
| Version | Description |
|---|---|
| 1.0.0 | version initiale |