Need help with triangular wave

16 ビュー (過去 30 日間)
Alina-Cristina CIOCAN
Alina-Cristina CIOCAN 2017 年 10 月 15 日
編集済み: KSSV 2017 年 10 月 16 日
figure(1)
t=-5:0.5:5;
xcos=cos(pi*2*t);
xpsqw=xcos>0;
plot(t,xpsqw);
xlabel('Timp(s)');
ylabel('Amplitudine')
title('Graficul functiei u(t)')
ylim([-3.5 4.5]);
This is my code, but I do not know how to modify it to look like this

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by