RosettaCodeData/Task/Element-wise-operations/MATLAB/element-wise-operations.m
2015-02-20 00:35:01 -05:00

4 lines
75 B
Matlab

a = rand;
b = rand(10,10);
scalar_matrix = a * b;
component_wise = b .* b;