Cody

Problem 42640. Back to Basics - Find no. of elements in a matrix?

Created by Manish Joshi in Community

Let A be a m*n matrix. Find the total no. of elements in A ?

(Hint - formula based)

A = [1 2 3;4 5 6];
output = 6

Solution Stats

85.08% Correct | 14.92% Incorrect
Last solution submitted on Jan 18, 2019

Problem Comments

Recent Solvers139

Suggested Problems

More from this Author3

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!