Matlab storing data in column or row -
i have written algorithm, storing data points in column. results contains mean , std. however, if store data points in row instead, results seem more close true value. there proper explanation this? in opinion, results should independent way of storage , remain same.
function [c]=test(n,m) rng default b=randn(m,n) rng default a=randn(n,m) c=a'-b end i using generator calculations. results turns out different depending on if use randn(m,n) or randn(n,m). (i taking m-th column or m-row sum them cumulatively).
Comments
Post a Comment