Thread Subject: 3D inequality plot

Subject: 3D inequality plot

From: James Wright

Date: 23 Jan, 2012 12:50:10

Message: 1 of 3

Hi,
I'm trying to plot an inequality with 3 variables in a 3D plot. The inequality, after being greatly simplified amounts to,

a + b < c

where a,b,c would be the 3 axes. Does anyone know a relatively simple way to do this?
Many thanks,

James

Subject: 3D inequality plot

From: Val

Date: 23 Jan, 2012 14:21:10

Message: 2 of 3

"James Wright" <jameswright1001@yahoo.co.uk> wrote in message <jfjl22$egq$1@newscl01ah.mathworks.com>...
> Hi,
> I'm trying to plot an inequality with 3 variables in a 3D plot. The inequality, after being greatly simplified amounts to,
>
> a + b < c
>
> where a,b,c would be the 3 axes. Does anyone know a relatively simple way to do this?
> Many thanks,
>
> James

What do you mean by an "inequality plot"?

You could do this, but I don't know that it's what you want:
arange = -10:10;
brange = -10:10;
[aa bb] = meshgrid( arange, brange);
c = 0;
M = a+b< c;
imagesc(M)

Subject: 3D inequality plot

From: James Wright

Date: 23 Jan, 2012 15:32:10

Message: 3 of 3

"Val" wrote in message <jfjqcm$3su$1@newscl01ah.mathworks.com>...
> "James Wright" <jameswright1001@yahoo.co.uk> wrote in message <jfjl22$egq$1@newscl01ah.mathworks.com>...
> > Hi,
> > I'm trying to plot an inequality with 3 variables in a 3D plot. The inequality, after being greatly simplified amounts to,
> >
> > a + b < c
> >
> > where a,b,c would be the 3 axes. Does anyone know a relatively simple way to do this?
> > Many thanks,
> >
> > James
>
> What do you mean by an "inequality plot"?
>
> You could do this, but I don't know that it's what you want:
> arange = -10:10;
> brange = -10:10;
> [aa bb] = meshgrid( arange, brange);
> c = 0;
> M = a+b< c;
> imagesc(M)

By inequality plot I mean plotting the curves of the inequality, i.e plotting the inequality in a 3D plot, one axis per variable, as mentioned above.
Thank you for your answer, though it's not really what I was looking for, as you've set c = 0 and I intended for c to be a variable.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
3d James Wright 23 Jan, 2012 07:54:13
plot James Wright 23 Jan, 2012 07:54:13
inequality James Wright 23 Jan, 2012 07:54:13
inequalities James Wright 23 Jan, 2012 07:54:13
rssFeed for this Thread

Contact us at files@mathworks.com