Cody

Problem 2230. Back to basics - array operations

Without performing actual arithmetic operations on arrays, return feasibility of operation as true or false. True if given operation can be performed on given matrices, else false.

Example

 Operation = 'Add'
 Matrices are:
  a = magic(3);
  b = [2 2; 2 2; 2 2]

Result: false, since size of a and b should be same to perform "Add" operation.

Solution Stats

48.48% Correct | 51.52% Incorrect
Last solution submitted on Jan 09, 2016
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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more