creating 3D matrix
显示 更早的评论
i am trying to create a 3D matrices of total dose , energy and density distributions
The diemntion of the files are 1x9131020 ( all the files have similar dimentions )
5 个评论
James Tursa
2021-2-9
We need more details. Will you be reading multiple files (e.g., in a loop) and then concatenating the data into one 3D array? How are you reading the files?
Ahmad Abbas
2021-2-9
Walter Roberson
2021-2-9
You might not see the relevance of that immediately, but the way you are using load() is creating variable names dynamically, and you would have to fish through the workspace to find out which variable names were created in order to know which variables to concenate together into the 3D array. Easier by far to Not Do That.
Ahmad Abbas
2021-2-9
Stephen23
2021-2-9
"... but i only got three files."
It is not important how many files you have. Load them into an output:
S = load(..)
and process the content of the structure S.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!