How to plot this type of function?
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1087235/image.png)
댓글 수: 2
Walter Roberson
2022년 8월 4일
Strange, I could have sworn I saw someone post code for this involving fplot3()
답변 (1개)
KSSV
2022년 8월 4일
편집: KSSV
2022년 8월 4일
t = linspace(-5,5) ;
x = exp(t) ;
y = 1-exp(-t) ;
z = atan2(y,x) ;
plot(t,z)
댓글 수: 3
Walter Roberson
2022년 8월 4일
Note that atan(y./x) is usually better done as atan2(y, x) . The difference is that atan2() will get the right quadrant.
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!