Matlab workspace not showing the cell contents

25 visualizaciones (últimos 30 días)
Badar-ud-din Ahmed
Badar-ud-din Ahmed el 8 de Mayo de 2020
Editada: Badar-ud-din Ahmed el 8 de Mayo de 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

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 8 de Mayo de 2020
Editada: Ameer Hamza el 8 de Mayo de 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 comentarios
Badar-ud-din Ahmed
Badar-ud-din Ahmed el 8 de Mayo de 2020
Dear Ameer Hamza,
Yes, this was the probelm and your suggestion solved it and enabled me to move further.
Thank you very much for your very concise reply.
Regards
Ameer Hamza
Ameer Hamza el 8 de Mayo de 2020
I am glad to be of help.

Iniciar sesión para comentar.

Más respuestas (3)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 8 de Mayo de 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.

Badar-ud-din Ahmed
Badar-ud-din Ahmed el 8 de Mayo de 2020
Hi,
Yes, in the first pic, i have accessed a matrix and not a cell.
Yes, in the two later pics, I accessed the two different cell arrays.
I showed first picture to show that, when I USED to access the cell arrays, I USED to see them like the matirx appeared in the first pic. However, now, I cant see the ararys like I used to see earleir (like the matrix, in excel like format).
Can you please extend advice ?
Regards

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 8 de Mayo de 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.
  1 comentario
Badar-ud-din Ahmed
Badar-ud-din Ahmed el 8 de Mayo de 2020
Dear Sulaymon Eshkabilov,
Thank you for taking time to extend help and guidance.
Regards

Iniciar sesión para comentar.

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by