A = A(50:99,50:99) in matlab

1 view (last 30 days)
Krishnaveni Sundarapandiyan
Commented: per isakson on 13 Feb 2018
what is the meaning of this code
  1 Comment
per isakson
per isakson on 13 Feb 2018
Try
>> A = magic(6)
A =
35 1 6 26 19 24
3 32 7 21 23 25
31 9 2 22 27 20
8 28 33 17 10 15
30 5 34 12 14 16
4 36 29 13 18 11
>> A(2:4,2:4)
ans =
32 7 21
9 2 22
28 33 17

Sign in to comment.

Accepted Answer

M
M on 13 Feb 2018
Did you read this ?
How is the matrix A defined before this line ?

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!