From: joey on
I am new to matlab (I started using it 3 days ago) and have a request that is probably quite basic, I have spent the last three days searching for a solution, but to date have not found the answer so I should ask for help. I am struggling considerably with trying to draw some kind of 3 dimensional representation of a couple of simple inequalities. I am not too fussed which function I use if there is a better option so please correct me if I have chosen the wrong one. I am fairly new to using code so I hope you will be kind with my use of syntax...

the inequalities are
z > (1-n-∆)/((2-n-∆))
given n<1, &#8710;<n, 0<&#8710;>1, n+2&#8710;<1 , 0<z<1

- I can draw the region represented by a z = (1-n-&#8710;)/((2-n-&#8710;)) using meshgrid to define n and &#8710; (or what I have termed X and Y) each from 0:0.05:1
Question 1 - should I use a different function? I used surf to draw the plot
Question 2 - I can control the range for z for which a surface is shown in my figure, I have used AXIS to reduce the axis size, though my surface is much larger, can I get a plot from 0<z<1?
- I have found a function called area, which is for an area fill of a 2d graph and have tested it in 2d, but I get errors when I try in 3d.
Question 3 Is there a similar command for plotting 3d inequalities?

If you could offer any advice for these 3 questions, it would be appreciated
pineapples
From: joey on
I have found another inequality thread I did not see before, (suddenly thought I always searched by inequality never inequalities and it came up, so adding the tag inequality to this), with the suggestion to use plotregion. Here is the tag:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/269291#704989

I would still love to know the answer to the z axis question, though this plotregion should work for inequalities, so the other two questions are I hope resolved. I am not sure what to do with it as have opened the m - file do I just type out my code similar to the example file below the code in the plotregion m-file and then click run (it did not seem to work) or do I need to install/save this m-file somewhere and write the code in a new m-file? I looked through the help on file exchange, but whilst there was some on what it was about, it seem to be implicitly understood that people would know how to use them. I don't yet :(

Any ideas?
From: joey on
Ok its taken some time but worked out how to change "paths" to use plot region. Now I just have to work out how to convert my inequality into the (A,b,lb,ub,c,transp,points,linetyp,start_end) terms it requires.


All are obvious, but A,b,lb and ub


Still interested in the answer to question 3 if anyone knows..
From: joey on
Ok its taken some time but worked out how to change "paths" to use plot region. Now I just have to work out how to convert my inequality into the (A,b,lb,ub,c,transp,points,linetyp,start_end) terms it requires.


All are obvious, but A,b,lb and ub


Still interested in the answer to question 3 if anyone knows..