RosettaCodeData/Task/Element-wise-operations/MATLAB/element-wise-operations.m

5 lines
75 B
Mathematica
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
a = rand;
b = rand(10,10);
scalar_matrix = a * b;
component_wise = b .* b;