필터 지우기
필터 지우기

some matlab functions like sawtooth, square etc are not running and display error in command window of "signal processing toolbox" ... any possible solution???

조회 수: 9 (최근 30일)
T=10*(1/50);
fa=1000;
dt=1/fa;
t=0:dt:T-dt;
x=sawtooth(2*pi*50*t);
plot(t,x);
  댓글 수: 3
Dyuman Joshi
Dyuman Joshi 2023년 7월 5일
편집: Dyuman Joshi 2023년 7월 5일
It seems that you don't have access to the Signal Processing Toolbox, which contain the sawtooth and square functions.
You need to have access to a Particular Toolbox to access the functions of the toolbox.
How to obtain a toolbox?
- By purchasing it.
- If you are a college student, your college might have a campus-wide license to MATLAB, with access to toolboxes. Contact your college authority dealing with such issues.
Rik
Rik 2023년 7월 5일
A third solution is to implement the function yourself. This may require a considerable effort.

댓글을 달려면 로그인하십시오.

답변 (1개)

Harsh Kumar
Harsh Kumar 2023년 7월 5일
Hi Moiz,
I understand that you are trying to plot a 'Sawtooth function' programmatically in MATLAB with given specifications.
To do this, make ensure that ‘Signal Processing toolbox’ is installed in you packages or you can install it from MATLAB add-ons as well .Also ,you may try running it on MATLAB online as it has necessary features preinstalled in it.
I tried reproducing it on my machine Refer to the below code snippet and output of that for better understanding.
T=10*(1/50);
fa=1000;
dt=1/fa;
t=0:dt:T-dt;
x=sawtooth(2*pi*50*t);
plot(t,x);
Refer to the below documentation for details : Link

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by