just plotting a 1 periodic function
古いコメントを表示
I would like to plot a 1 periodic function and it could be piecewise linear. I have a function like below,it is a triangular function, I would like to extend the triangle with a period 1,how can I do it? thanks
function piecewise=piecew(x);
piecewise=abs(1-abs(x)).*(abs(x)<1);
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Elementary Math についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!