file type in matlab workspace

2 次查看(过去 30 天)
I studied a program related to my work in which I have a file named vhf_power_0510, when I loaded this file, then in matlab workspace it appears as: note here that I write square brackets and equal sign only to make clear what is written in workspace :
[Name=pwr value=1800×10×267 double Min=<Too many elements> Max=<Too many elements>]
In program after that when they write in command window,
lgtime=length(pwr(:,1,1))
Then in workspace it appears as: *note that here I again write square brackets and equal sign only to make clear what is written in workspace
[Name=lgtime value=1800 Min=1800 Max=1800]
My problem is that I don't understand pwr is which type of matrix or how this type of matrix is created and how I can open this file from workspace? Because in matlab workspace matrix has only m×n while there are 3 numbers 1800×10×267 double. Also when I double click to open pwr from workspace it does not open rather a sentence comes 'Cannot display summaries of variables with more than 524288 elements'.
  1 个评论
Walter Roberson
Walter Roberson 2017-2-17
Duplicates https://www.mathworks.com/matlabcentral/answers/325324-file-type-in-matlab-workspace but this one has an answer

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2017-2-16
length(TheMatrix) of a 3D matrix is max(size(TheMatrix)) -- that is, the length of the longest dimension. Your array is 1800 x 10 x 267 and the largest of those is 1800 so the length shows up as 1800. But the original matrix is 3 dimensional.
You can extract part of it and view that. For example,
P1 = pwr(:,:,1);
and then you can view P1.

更多回答(0 个)

类别

Help CenterFile 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!

Translated by