How can I plot a huge set of data?

Hi
I have a 45000 *6 matrix, i want plot the 6th colon in function of the 5th colon. i used the function plot:
plot(TOT(:,5),TOT(:,6),'x');
Doing that, Matlab freeze. I've created a submatrix with the two colons i need and i tried again.
A=[TOT(:,5) TOT(:,6)]
plot(A(:,1),A(:,2),'x')
In the beginning it functions and i generated a report with matlab. But, today i want run my code again, it freezes in the plot line .
Does any one have an idea what can I do?
Thanks

4 Comments

It's rarely useful to have 45,000 points on a plot. Could you bin your data and plot a relevant statistics?
Ma set of data is random, and i need this plot to do a caracterisation
Binning or sub-sampling should be fine for characterization purposes.
can you explain more please

Sign in to comment.

 Accepted Answer

By creating a new matrix A, you are increasing the memory used by Matlab. you can check the memory used by Matlab. Type
memory
Lookt at

6 Comments

yeah of course but it was strange that it doesn't function with the original Matrix in the begininng
At the same time, 45000*6 elements does not occupy a lot of memory, unless your computer performances are very low.
when it functioned it just take 17 second to run all the program. (10 second to load data, 5 second for a function that I create to sort data and take what i need)
I deleted the matrix A, but always the same problem, trying to investigate more, my program freeze starting with 1200 point
When you type
memory
what do you get?
nothing, no error message. It freezes, busy and couldn't stop

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Objects 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!