Hi This is a question about how Matlab displays certain variables, depending on the number of dimensions contained. When I generate randn(10,2)
, I get a 10X2 table in the workspace window, very easy to copy paste directly from here to excel. However, when I do randn(10,2,1)
, Matlab creates something that looks like a text file in the workspace. Copying the data over can be a pain when you have randn(1000,2,1)
for example. Why does Matlab do this?
For context - I want to "pre-generate" (if there's such a word) a set of random numbers for multiple assets and for multiple simulations; hence I'm using randn(NumSteps,NumAssets,NumSimulations)
. I'm sure there's a better way of doing this...so suggestions are always appreciated.
Aucun commentaire:
Enregistrer un commentaire