From: fckool <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: optimize code
Date: Thu, 13 May 2010 15:29:43 EDT
Organization: The Math Forum
Lines: 7
Message-ID: <>
References: <>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: 1273779013 23336 (13 May 2010 19:30:13 GMT)
NNTP-Posting-Date: Thu, 13 May 2010 19:30:13 +0000 (UTC)
Xref: comp.soft-sys.matlab:635559

forget it... your code is correct because when you remove the corresponding value on occur vetor you automatically have the correct value on the Prob vector. 

I have other question.. (sorry)

I have a for cycle where a enter 2 values manually de Simbs and their Probably .. I want do a condition that don't let me introduce a value bigger than 1 like its Sum. when it happens I want the user introduce again the value..

it's possible?