필터 지우기
필터 지우기

how to create surface plot with NX3 matrix?

조회 수: 1 (최근 30일)
Sameer
Sameer 2014년 5월 23일
댓글: Image Analyst 2014년 5월 23일
how do I create a surface (surf) plot with a NX3 Matrix?
also how do i add a colorbar to this plot?
Thanks.

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 23일
surf(M);
colormap(jet(256));
colorbar;
  댓글 수: 2
Sameer
Sameer 2014년 5월 23일
It looks really sloppy. How do i make it neater.
I would like price on one axis, quantity on the other axis and possibly net present value (npv) on the z axis
Image Analyst
Image Analyst 2014년 5월 23일
You can use other functions to fancy it up. Though it adds other objects - not sure if that's neater or messier. But you can use xlabel(), ylabel(), title(), test(), annotation(), axis(), grid(), set(), etc.

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

카테고리

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