MATLAB Answers

0

Problem in data loading

Asked by siddhartha chandel on 8 Nov 2012
I have a data which shows in workspace 40x40x524288 but the problem is that it can't display. Variable editor says that it " Cannot display summaries of variables with more than 524288 elements". How can i short out this . Thanks in advance.

  0 Comments

Sign in to comment.

2 Answers

Arthur
Answer by Arthur
on 8 Nov 2012

You will need to make the array smaller to display it, that's obvious from the error message. Also, it is an array with 3 dimension, which cannot be displayed. You could display it by chopping it op in smaller arrays.
a = mydata(:,:,1);
Now you can display a.
However, I really wonder why you want to display such an array, containing 800 million values...

  0 Comments

Sign in to comment.


Walter Roberson
Answer by Walter Roberson
on 8 Nov 2012

The data has likely loaded correctly, and you are just encountering a limit on the variable editor. You can use max() and min() on the variable from the command window if you want to see those values.

  0 Comments

Sign in to comment.