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
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers53
Suggested Problems
-
1220 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3061 Solvers
-
1247 Solvers
-
Set the array elements whose value is 13 to 0
1435 Solvers
-
Create an index-powered vector
933 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
test case 7 and 8 are identical with different result plz fix
@Nikolaos Nikolaou: while input variables are the same in test cases 7 and 8, they are passed to the function in different orders.