- Getting Started chapters of the documentation
How to display a single element from a matrix?
33 views (last 30 days)
Hi, I was wondering how I would be able to display a singular element from a given matrix. If I were to have a random integer matrix
x = randi (20,20)
how would I go about selecting or highlighting the given value from a random row/column combination (say I want to know what vlaue is at [5, 7])? Thanks in advance for the advice.
Jan on 15 Sep 2022
Indexing is a fundamental Matlab method. To learn the basics asking in the forum is less efficient than using the tutorials: