4-Input Karnaugh Mapper

Takes a 16 element vector and turns it into a 4 x 4 k-map

You are now following this Submission

Given a 16-element vector which corresponds to the output from a 4-input truth table the k_mapper function returns a 4x4 matrix where all the elements have been shifted to be in the correct order for a 4-input kmap.

I created this function to save time and paper on some homework problems. Is there a faster way to shift the 3&4 columns and rows than the way swapping with a temporary variable I have used? Any ideas for making this program more efficient would be appreciated.

Cite As

Matthew (2026). 4-Input Karnaugh Mapper (https://www.mathworks.com/matlabcentral/fileexchange/29336-4-input-karnaugh-mapper), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0