Reading Matrices in MATLAB and assigning coordinates to the entries

Posted by Michael Schofield on Stack Overflow See other posts from Stack Overflow or by Michael Schofield
Published on 2010-05-03T12:13:01Z Indexed on 2010/05/03 12:18 UTC
Read the original article Hit count: 176

Filed under:
|
|
|
|

Hi, I'm a bit new to MATLAB.

Basically, I have a 25x25 Matrix, complete with various random entries ranging from 0 to 3. I need to write a program that reads this matrix, and assigns x-y coordinates to the entries, so that when I ask for an input of a particular x-y coordinate which has, say an entry of 3, then it will result in an error. I'm a bit overwhelmed - but I understand the general concept of what I'm supposed to be finding. I'm wondering if I should use a plot instead to help me.

© Stack Overflow or respective owner

Related posts about matrix

Related posts about matrices