Insert Interpolation Into Matlab Code
Mostrar comentarios más antiguos
Hi, I am new to Matlab programming. The graph result should be have a range of x-asix from -1 to 1, but now the graph is from 0 to 1. I want to set the range for x-axis from -1 to 1. May I know anyone can help me?
This is the current program code.

This is my current result:

Thanks in advance!
3 comentarios
Walter Roberson
el 22 de Nov. de 2019
You call interp1 with four numeric values and then the 'spline' method. However interp1 is only defined with at most three numeric values before the method parameter.
KIEN WEI LAI
el 22 de Nov. de 2019
darova
el 22 de Nov. de 2019
You mean limits of x?
xlim([-1 1])
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!