필터 지우기
필터 지우기

How can I create the attached 3D figure with more smooth curves?

조회 수: 2 (최근 30일)
Moein
Moein 2016년 1월 17일
댓글: Moein 2016년 1월 17일
Hi friends
I have plotted the attached Fig. with contourf command but its black cureves are not so smooth (As it can be seen on figure).
What command or property i should use to plot the figure with more smooth curves?
If you know please answer to my question as simple as you can.
Thanks a lot

채택된 답변

Star Strider
Star Strider 2016년 1월 17일
It looks smooth and continuous to me. If you want to interpolate it to a finer mesh, use the interp2 function. See the ‘Examples’ section for an illustration on how to do exactly that.
  댓글 수: 2
Moein
Moein 2016년 1월 17일
For example my figure is similar to the MATLAB's logo, but its shape and colors and curves are more smooth than mine. how can i create my figure with the resolution similar to the resolution of MATLAB's logo?
Star Strider
Star Strider 2016년 1월 17일
I would use the interp2 function, and interpolate it to a finer mesh, as I mentioned previously.
If it represents a calculation, you can begin with a smoother mesh. I believe you already know about meshgrid, so creating your original vectors with the linspace function with a finer spacing is another option.
If you want to turn off the mesh lines (so that it looks more like the MATLAB logo), you can set 'LineStyle','none'. See the documentation for Chart Surface Properties for details on how to set that and other properties. You may have to experiment with them to get the result you want.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2016년 1월 17일
If you want to create the image with a higher resolution ... create it with a higher resolution. How did you save the image file? Did you consider to export it as vector graphics in a EPS or PDF file?
  댓글 수: 2
Moein
Moein 2016년 1월 17일
thanks Jan
the first link is exactly what i wanted.
Moein
Moein 2016년 1월 17일
A new Bug!
Jan i used myaa to generate a better figure with a higher resolution but it failed!
please look at attached file. some curves have not been appeared in the generated figure.
what should i do to solve this bug?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by