How can I count how many entries are in a matrix?

1 view (last 30 days)
I am asked to count the amount of entries in a matrix and I don't know how

Answers (1)

Roger Stafford
Roger Stafford on 16 Nov 2017
Use 'numel'.

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!