Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
area and jbfill codes

Subject: area and jbfill codes

From: Mehmet Demirel

Date: 8 Aug, 2012 12:30:22

Message: 1 of 4

Hello,

I was using area function to draw grey shaded confidence interval (5%-95%).
X=[Q95 Q5];
area(X)
where Q95 and Q5 are the vectors of upper and lower boundary. After realising that area function accumulates two values to find the upper boundary, I was disappointed. Hopefully jbfill is doing what I want. However, i like to ask, if there is a way to use still area function for the same purpose?

Regards,
Mehmet
rhinelowflows.nl

Subject: area and jbfill codes

From: Sadik

Date: 9 Aug, 2012 04:16:18

Message: 2 of 4

Mehmet,

How about

X = [Q95 Q5-95];
area(X)

Best.

Subject: area and jbfill codes

From: Sadik

Date: 9 Aug, 2012 04:24:13

Message: 3 of 4

Actually you said Q95 is the upper and Q5 is the lower bound which means to me that Q5<Q95. Then, you could rather try:

X = [Q5 Q95-Q5];
area(X)

Subject: area and jbfill codes

From: Mehmet Demirel

Date: 27 Sep, 2012 14:40:07

Message: 4 of 4

"Sadik " <sadik.hava@gmail.com> wrote in message <jvve1d$fn$1@newscl01ah.mathworks.com>...
> Actually you said Q95 is the upper and Q5 is the lower bound which means to me that Q5<Q95. Then, you could rather try:
>
> X = [Q5 Q95-Q5];
> area(X)


Yes this is exactly what i need!!

Thanks Sadik!!

Regards,
Mehmet

Tags for this Thread

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.

Contact us