Matlab workspace not showing the cell contents
17 views (last 30 days)
Show older comments
Badar-ud-din Ahmed
on 8 May 2020
Edited: Badar-ud-din Ahmed
on 8 May 2020
Hi,
My question is similar to following questions :
I have been using MATLAB R2019b (student license) on Dell Inspiron laptop with Windows 10. It has been working well so far.
Yesterday, I observed that that I could not longer see the contents of cell array in the excel style, like I was previously able to see. For example, I can see some variable in workplace like following:
However, when I , NOW, try to see the cell contents, I see the following :
Another cell array now appears like following:
Earlier, I used to see the cell contents like in the first figure.
I tried the following two commands, then I exit form the MATLAB, but it still did not work :
>> restoredefaultpath
>> savepath
After that, I uninstalled MATLAB R2019b and then I installed MATLAB R2020a but again the same problem.
I again used the following commands but no success:
>> restoredefaultpath
>> savepath
Can you please help to resolve this problem.
Best regards
0 Comments
Accepted Answer
Ameer Hamza
on 8 May 2020
Edited: Ameer Hamza
on 8 May 2020
The problem is happening because you have created a cell-array with the number of columns > 10000. MATLAB does not show those cell arrays. The workaround is to take the transpose of the cell array so that it will have only two columns. Then it will show the cells as you want. For example, run
CFVK2 = CFVK.';
and then check the value of CVFK2
2 Comments
More Answers (3)
Sulaymon Eshkabilov
on 8 May 2020
Hi,
In the first picture you have accessed the matrix (variable called: f: 1x256 ) not a cell array see the hilighted. In the subsequent two figures, as shown you have accessed the cell arrays: CFVK and VK, respectively.
Your MATLAB package is working ok as shown in your screenshots.
0 Comments
Sulaymon Eshkabilov
on 8 May 2020
Hi,
It can be explained in a simple way. type in the following commands and try access the created cell array HG as shown in your 1st picture.
X= 1:13; Y = 2*X-13; Z= X.^2+Y.^3;
x1=13; y1=x1+3;
HG{1}=X; HG{2}=Y; HG{3}=Z; HG{5}=x1; HG{7}=y1;
Now create the followings:
RGB(:,:,1) =randi([0, 255], 10, 5);
RGB(:,:,2) =randi([0, 255], 10, 5);
RGB(:,:,3) =randi([0, 255], 10, 5);
GH=num2cell(RGB);
In the latter case, the cell array is obtained from the array not a matrix or vector or scalar. Thus, you have a different view of the cell array in the latter case.
Hope it ic lear now.
All the best.
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!