Quantcast
Channel: MATLAB Central Newsreader - tag:"variables"
Viewing all articles
Browse latest Browse all 41

Re: One variable with multiple values depending on conditions

$
0
0
On 04/12/2017 4:20 PM, dpb wrote:
...

> What you're looking for is to not define A as a vector ever; only assign
> either 1/11 initially and then do the test. Or, alternatively,
> initialize A to zero instead and then your sum doesn't need to even
> account for sum without the ace value.

The latter, of course, for the initial case; that way you reinitialize
it to zero before each check or retain the hand less ace sum calc...

--

Viewing all articles
Browse latest Browse all 41

Trending Articles