file type in matlab workspace

조회 수: 1 (최근 30일)
Safi ullah
Safi ullah 2017년 2월 16일
댓글: Walter Roberson 2017년 2월 17일
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