Why is following intermediate calculation step necessary?
temp = abs(rand(10)-eye(10));result = mean(temp(:));
In Octave is it possible to write the same on one single line:
result = mean(abs(rand(10)-eye(10))(:));
indexingMATLABparenthesessyntax
temp = abs(rand(10)-eye(10));result = mean(temp(:));
result = mean(abs(rand(10)-eye(10))(:));
Best Answer