How to figure out "preview too large to be displayed" error while importing .mat file with import wizard
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
안나 유
le 29 Août 2023
Réponse apportée : lazymatlab
le 30 Août 2023
I want to open a matlab file of a 3-dimensional array. When I run the import wizard to open this file, it says the preview is too large to display. To solve this problem, I reduced the matrix and changed the data type to reduce the byte size. Even if I keep reducing it, there is a problem. How can I solve this problem?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1467041/image.png)
0 commentaires
Réponse acceptée
lazymatlab
le 30 Août 2023
The preview pane on the Import Wizard window tries to show all the elements of selected matrix which may fail if it has too many elements. It seems like the maximum number of elements that the preview pane can show depends on the dimension of matrix, because the 1-D matrix show below has no problem to be previewed.
>> a = rand(20,20,10);
>> a = a(:);
>> save('a.mat', 'a');
Hope this helps.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!