FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math » num-analysis
Compating double with Interval Problem Matlab
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
immernurzweiter@hotmail.c
science forum beginner


Joined: 10 May 2006
Posts: 7

PostPosted: Wed Jul 12, 2006 9:21 pm    Post subject: Compating double with Interval Problem Matlab Reply with quote

Hello,
I have got a porblem with Matlab.
I would like to find out, which numbers of a vector agree with an
interval.

Example: A = [4; 5; 6];

I will compare A with an interval of 90% - 110% around the vector B

B = [3.2; 5.05; 4.06]

I would like to have now the result that the second line a correct
Ergbenis ejects. Either logically or indexes.
Can someone help me?
Thank you in advance!

Greetings your Christian
Back to top
Peter Spellucci
science forum Guru


Joined: 29 Apr 2005
Posts: 702

PostPosted: Thu Jul 13, 2006 11:04 am    Post subject: Re: Compating double with Interval Problem Matlab Reply with quote

In article <1152739300.172732.96820@p79g2000cwp.googlegroups.com>,
"immernurzweiter@hotmail.com" <immernurzweiter@hotmail.com> writes:
Quote:
Hello,
I have got a porblem with Matlab.
I would like to find out, which numbers of a vector agree with an
interval.

Example: A = [4; 5; 6];

I will compare A with an interval of 90% - 110% around the vector B

B = [3.2; 5.05; 4.06]

I would like to have now the result that the second line a correct
Ergbenis ejects. Either logically or indexes.
Can someone help me?
Thank you in advance!

Greetings your Christian


what do you want really? what is a 90%-110% interval around a vector?

do you mean this (everthing assumed to be >0 here)

blow(1)=0.9*min(B);
bup(1)=1.1*max(B);
blow(2)=0.9*max(B);
bup(2)=1.1*max(B);
k=0;
ind=[];
for i=1:n
if (a(i)-blow(1))*(bup(1)-a(i))>=0 || (a(i)-blow(2))*(bup(2)-a(i))>=0
k=k+1;
ind(k)=i;
end
end

????
hth
peter
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Nov 20, 2017 11:27 am | All times are GMT
Forum index » Science and Technology » Math » num-analysis
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts help on problem brb003 Math 0 Mon Aug 28, 2006 3:31 am
No new posts fraction problem mikerule Research 0 Thu Aug 24, 2006 5:10 am
No new posts Mod computer problem William Elliot Math 4 Fri Jul 21, 2006 12:07 pm
No new posts Divine apparitions in the tethered goat problem? jpalmour@gmail.com Math 6 Thu Jul 20, 2006 8:26 pm
No new posts possible to use Generalized Method of Moments for this pr... comtech Math 1 Thu Jul 20, 2006 12:49 am

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Electronics forum |  Medicine forum |  Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums  |  send newsletters
 


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0185s ][ Queries: 16 (0.0049s) ][ GZIP on - Debug on ]