How to plot a function on a cylinder surface
이전 댓글 표시
Hi everybody
I want to plot level curves of a function on a cylinder surface. It should look similar like this:

Forget about the cats, just want to get the lines on the cylidner.
The function for the lines would be H(p,q) = 0.5*p^2-cos(q)-const. for const= 1:10 for example.
Since I don't have any clue of the code (also after doing some researches) unfortunately i cannot present my ideas.
I would be delighted getting some hints!
Thank you
Sabrina
채택된 답변
추가 답변 (1개)
Sabrina Sewer
2018년 6월 12일
댓글 수: 1
Anton Semechko
2018년 6월 12일
This was an example of how to plot scalar functions on a cylinder. You can substitute G with any other function you want.
카테고리
도움말 센터 및 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!


