skip to main | skip to sidebar

5300 Blog

Monday, May 26, 2008

Assignment #4, Q 20

Octave command:

octave:14> a=[1,3,0;2,3,6;4,7,8]
a =

1 3 0
2 3 6
4 7 8

octave:15> shift(a,1)
ans =

4 7 8
1 3 0
2 3 6

Details: create a generic nxn matrix (I chose a 3x3 for illustration purposes) and use the 'shift' function in octave to have the matrix wrap around bottom -> top.
Posted by pdiddy at 11:30 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (55)
    • ►  07/13 - 07/20 (1)
    • ►  07/06 - 07/13 (1)
    • ►  06/29 - 07/06 (3)
    • ►  06/15 - 06/22 (11)
    • ►  06/08 - 06/15 (4)
    • ►  06/01 - 06/08 (3)
    • ▼  05/25 - 06/01 (20)
      • Assignment #4, Q22
      • Assignment #4, Q 19
      • Assignment #4, Q 20
      • Assignment #4, Q 17
      • Assignment #4, Q 16
      • Assignment #4, Q15
      • Assignment #4, Q 14
      • Assignment #4, Q13
      • Assignment #4, Q 12
      • Assignment #4, Question 11
      • Assignment #4, Question 10
      • Assignment 4, Question 9
      • Assignment #4, Question 8
      • Assignment #4, Question 7
      • Assignment #4, Question 6
      • Assignment #4, Question 5
      • Assignment #4, Question 4
      • Assignment #4, Question 3
      • Assignment #4, Question 2
      • Assignment #4, Question 1
    • ►  05/18 - 05/25 (3)
    • ►  05/11 - 05/18 (8)
    • ►  05/04 - 05/11 (1)

About Me

pdiddy
View my complete profile