clear Z=[-4:1:2];H=[0:1:4]; [xx,yy]=meshgrid(Z,H); zz=0.4166+0.0456.*yy-0.2343.*xx; if zz>=1 then zz=1 end if zz<=0 then zz=0 figure surf(xx,yy,zz) I want the value staying at (0,1), how to make this happen? and why this program doesn't work
MATLAB: How to select value
matlab value
Related Question
- How to subtract two data sets with different resolutions in MATLAB
- Create an interpolated grid
- Surface plot ignores points when using log scale
- 3D Surface Plot Showing Flat Surface
- Warning: Matrix is singular to working precision.
- Matlab is not displaying all the figures
- I’m having a problem using subplot to show the difference between lighting on two separate graphs
- Trying To Plot a 3D shape
Best Answer