Reputation: 331
I am plotting a waveform as a function of time and space using a MATLAB mesh plot. The number of space steps is 101. The number of time steps is originally 2^14. I get a good plot except for some wraparound of the signal at the window edges. So I doubled my number of time steps to 2^15. When I do this the plots return garbage.
Is there a maximum data set size for mesh plots in MATLAB? Is it depend on the version of MATLAB? Or is it machine dependent?
Upvotes: 1
Views: 896
Reputation: 16440
Generally Matlab will happily create large matrices as long as your computer has enough memory and it is within the 32-bit or 64-bit addressing limits. See http://www.mathworks.com/support/tech-notes/1100/1110.html
If you were hitting the memory cap you would get an out of memory error.
matrix of 2^15*101 ~ 3,200,000 elements (doubles) => ~25 Mb of memory
Your code must have a bug somewhere.
Upvotes: 1