Check for missing argument or incorrect argument data type in call to function 'sinc'.

7 visualizaciones (últimos 30 días)
x = linspace(-4*pi, 4*pi, 100)
P = (3*pi)/2
plot(x, P*sinc(x) + cos(x))
grid
This is my code. I am not sure why it is showing an error.
Error:- Check for missing argument or incorrect argument data type in call to function 'sinc'.

Respuestas (1)

Sreerag K
Sreerag K el 18 de Oct. de 2020
x = linspace(-4*pi, 4*pi, 100)
P = (3*pi)/2
plot(x, P*(sin(x)./x) + cos(x))
grid
Using this instead of sinc function solved the issue.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by