How do I plot a tent-map?
조회 수: 8 (최근 30일)
이전 댓글 표시
I have to plot the given function
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1651951/image.png)
on the unit interval. How can I do that? I didn't find any useful answers on MATLAB to even start the plotting procedure of the piecewise linear function.
Thanks
댓글 수: 4
채택된 답변
Stephen23
2024년 3월 26일
"How do I plot a tent-map?"
Following the basic definition of tent map:
X = 0:0.01:1;
Y = min(2*X,2-2*X);
plot(X,Y)
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!