How can i solve this problem 'sawtooth' for input arguments of type 'double'?

T=5*pi; A=1; x=-T:0.1:T; y=A*sin(x/3); y1=sawtooth(x,0.5); z=y<y1; ylim([-1.5,1.5]) subplot(1,2,1); plot(x,y); hold on; plot(x,y1); hold on; zlim([-1.5,1.5]) subplot(1,2,2); plot(x,z); hold on

回答 (1 件)

Mischa Kim
Mischa Kim 2015 年 2 月 5 日
Marti, the code looks fine. What happens if you execute a
clear
and then run your code again? Is this code part of a script or function or do you run it stand-alone in the command window?

3 件のコメント

marti rodriguez
marti rodriguez 2015 年 2 月 6 日
I run it stand-alone in the command window my thanks in advance for your help
Mischa Kim
Mischa Kim 2015 年 2 月 6 日
sawtooth is part of the Signal Processing Toolbox, which you might not have installed and/or licensed. To check, try
which sawtooth
which should return something like
C:\Program Files\MATLAB\R2015a\toolbox\signal\signal\sawtooth.m
or
ver
which lists all of the installed toolboxes.
marti rodriguez
marti rodriguez 2015 年 2 月 11 日
you can see?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2015 年 2 月 5 日

コメント済み:

2015 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by