I want to plot a discontinuous step surface. I entered this plot statement:
Plot3D[{if[x > 0, x = 0, x = 1]}, {x, 2, -2}, {y, 2, -2}]
All I get is an empty box. What went wrong?
I want to plot a discontinuous step surface. I entered this plot statement:
Plot3D[{if[x > 0, x = 0, x = 1]}, {x, 2, -2}, {y, 2, -2}]
All I get is an empty box. What went wrong?
Perfect! Thank you Nasser Abbasi!
The Problem is nothing but, you have used small āiā instead of capital āIā for If function. Its working well.