필터 지우기
필터 지우기

Create a triangular wave/sawtooth function error...

조회 수: 9 (최근 30일)
Alejandro Urbina
Alejandro Urbina 2016년 4월 11일
댓글: Romana Nourin 2021년 9월 13일
Im trying to build a sawtooth function but matlab is not letting me run it... this is what its saying, i post a couple of hours ago and the reply i got is that its working for them but its still not working for me... i dont know what its wrong on it... ill appreciate any help thank you

채택된 답변

reen2015
reen2015 2016년 4월 11일
Please change your file name. You saved it as sawtooth.m, note that sawtooth is an inbuilt function in matlab. try using mysaw.m
  댓글 수: 4
Image Analyst
Image Analyst 2021년 6월 26일
@Chad Robke, something else must be wrong. I hand typed in all your code and in ran just fine:
T = 2*4;
Fs = 1000;
dt = 1/Fs;
t = 0 : dt : T-dt;
x = sawtooth(2 * pi * t);
x = (x + 1) * 5
plot(t, x, 'b-', 'LineWidth', 2);
grid on;
Romana Nourin
Romana Nourin 2021년 9월 13일
Thank you!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by