conditional_sum_add​er(x,y)

conditional sum adder
14 Downloads
Updated 5 Aug 2017

View License

conditional_sum_adder(x,y) take two eight bit input x and y and return all sum value step by step
example:
conditional_sum_adder([1 1 0 0 1 1 1 0],[1 0 0 0 1 1 1 1]) will produce
X =
1 1 0 0 1 1 1 0

y =
1 0 0 0 1 1 1 1

______________________________________________________
S00 =
0 1 0 0 0 0 0 1

C00 =
1 0 0 0 1 1 1 0

______________________________________________________
S01 =
1 0 1 1 1 1 1 0

C01 =
1 1 0 0 1 1 1 1

______________________________________________________
______________________________________________________
S10 =
0 1 0 0 1 0 0 1

C10 =
1 0 0 0 1 0 1 0

______________________________________________________
S11 =
1 0 0 1 1 1 1 0

C11 =
1 0 0 0 1 0 1 0

______________________________________________________
______________________________________________________
S20 =
0 1 0 0 1 1 0 1

C20 =
1 0 0 0 1 0 0 0

______________________________________________________
S21 =
0 1 0 1 1 1 1 0

C21 =
1 0 0 0 1 0 0 0

______________________________________________________
______________________________________________________
S30 =
0 1 0 1 1 1 0 1

C30 =
1 0 0 0 0 0 0 0

______________________________________________________

Cite As

ankit gupta (2024). conditional_sum_adder(x,y) (https://www.mathworks.com/matlabcentral/fileexchange/64005-conditional_sum_adder-x-y), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0