How do I plot a 3d shape from a function?
조회 수: 8 (최근 30일)
이전 댓글 표시
I have to plot the following function:
where [c1,c2,c3,c4] = [2.13,2.22,2.62,0.177]
Is there a way of doing this?
Thank you
댓글 수: 0
채택된 답변
Hiro Yoshino
2022년 6월 19일
x = -2:0.25:2;
y = x;
if you want to visualize this , then
surf(x,y,x.*exp(-x.^2 -(y').^2))
You can also perform the same thing by using meshgrid function - this might be easier for you to understand this..
추가 답변 (0개)
참고 항목
카테고리
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!