error:Undefined function or variable 'sawtooth'.

T = 10*(1/50);
fs = 1000;
t = 0:1/fs:T-1/fs;
x = sawtooth(2*pi*50*t);
plot(t,x)
grid on

3 comentarios

VBBV
VBBV el 25 de Dic. de 2020
Change your working directory name to something other than standard matlab installed folders
VBBV
VBBV el 25 de Dic. de 2020
Seems sawtooth function is not supported in matlab 2015a
shivam Kumar
shivam Kumar el 25 de Dic. de 2020
suggest me if there is any library to make it work.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Dic. de 2020

0 votos

sawtooth() is part of the Signal Processing Toolbox

3 comentarios

shivam Kumar
shivam Kumar el 25 de Dic. de 2020
please give solution
Walter Roberson
Walter Roberson el 25 de Dic. de 2020
sawtooth was supported in R2015a.
I do not have the link for the R2015a documentation, but the R2015b documentation link is https://www.mathworks.com/help/releases/R2015b/signal/ref/sawtooth.html
and the function is marked as existing before R2006a.
You do, however, need to have the Communications Systems Toolbox installed and licensed in order to use it.
shivam Kumar
shivam Kumar el 25 de Dic. de 2020
thank you for the help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Productos

Versión

R2015a

Preguntada:

el 25 de Dic. de 2020

Comentada:

el 25 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by