Advertisement
EstebanRojas

scriptGraphicOptional

Jun 6th, 2024
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.76 KB | None | 0 0
  1. function scriptGraphicOptional(booleanMatrixOriginal,booleanMatrix,matrixAND)
  2.     I=mat2gray(booleanMatrixOriginal,[1 0])
  3.     II=mat2gray(booleanMatrix,[1 0])
  4.     III=mat2gray(matrixAND,[1 0])
  5.     IV=mat2gray((booleanMatrixOriginal+booleanMatrix),[1 0])
  6.     figure
  7.     RI = imref2d(size(I));
  8.     RI.XWorldLimits = [0 10];
  9.     RI.YWorldLimits = [0 10];
  10.     subplot(2,2,1)
  11.     imshow(I,RI,'InitialMagnification','fit')
  12.     title('MATRIS ORIGINAL');
  13.     subplot(2,2,2)
  14.     imshow(II,RI,'InitialMagnification','fit')
  15.     title('MATRIS GENERADA');    
  16.     subplot(2,2,3)
  17.     imshow(III,RI,'InitialMagnification','fit')
  18.     title('MATRICES DE ACIERTOS');
  19.     subplot(2,2,4)
  20.     imshow(IV,RI,'InitialMagnification','fit')
  21.     title('MATRICES SUPERPUESTAS');
  22. end
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement