Back to basics - array operations - MATLAB Cody - MATLAB Central

Problem 2230. Back to basics - array operations

Difficulty:Rate
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

33.87% Correct | 66.13% Incorrect
Last Solution submitted on Nov 30, 2023

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers51

Suggested Problems

More from this Author25

Community Treasure Hunt

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

Start Hunting!
Go to top of page