How to figure out "preview too large to be displayed" error while importing .mat file with import wizard
10 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
lazymatlab
2023-8-30
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!