Advertisement
Sakib-Al-Emran

ab

Sep 22nd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.30 KB | None | 0 0
  1. clc
  2. close all
  3. clear all
  4.  
  5. Y = 8×8
  6.    
  7.    1 0 0 0 0 0 0 0
  8.    0 1 0 0 0 0 0 0
  9.    0 0 1 0 0 0 0 0
  10.    0 0 0 1 0 0 0 0
  11.    0 0 0 0 1 0 0 0
  12.    0 0 0 0 0 1 0 0
  13.    0 0 0 0 0 0 1 0
  14.    0 0 0 0 0 0 0 1
  15. for i=0:1:7
  16.  
  17.     Ai,2=Y7+Y6+Y5+Y4
  18.     Ai,1=Y7+Y6+Y3+Y2
  19.     Ai,0=Y7+Y5+Y3+Y1
  20.    
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement