Rank: 70672 based on 0 downloads (last 30 days) and 0 file submitted
photo

Pat

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Pat
Updated File Comments Rating
11 May 2011 Boolean Algebra Toolbox , ver. 2.2 Generate nbc and gray code, boolean evaluation and display truth-table. The "bool"-class for conveni Author: Rasmus Anthin

Hi - don't know what might have changed between 2007, the time of the last previous post, and R2010B that I'm using but I had add the following islogical() clause to the end of bool.m

.
.
.
elseif isbool(x)
y=x;
elseif islogical(x)
y=x;
else
error('Input must be numeric.')
end

Without this change an expression such as:

(a+b)'==a'*b'

crashes.

I could correct the code (I found that Rasmus is no longer at the email address given) but I'm new to Matlab and am now sure what the protocol is.

Contact us