Newbie: How can I operate with huge data in variables at the workspace?
2 views (last 30 days)
Show older comments
Hi,
In a test, I have gathered like 200MB of data splited in like 8 variables. I have an array of data for voltage (3000000x1 double) and another for current. I would like to plot the resistance, and I tried in the Command Window:
Resistance= Voltage/Current (as those are the names of the variables)
I get this error:
???Error using==> mldivide Out of memory. Type HELP MEMORY for your options.
This is a very small test compared with another and I really hope it is not because the PC has not RAM to do it!!
Many thanks
Sergio.
1 Comment
Muthu Annamalai
on 25 Jun 2013
Edited: Muthu Annamalai
on 25 Jun 2013
You probably want to do this instead,
Resistance= Voltage./Current; %don't for semi-colon b/c of your data size!
to obtain the element-wise division. Reading the MATLAB tutorial is an excellent way to get started!
Answers (2)
Image Analyst
on 25 Jun 2013
Did you type help memory like it suggested? Or check here: http://www.mathworks.com/support/tech-notes/1100/1107.html. Can you use single variables instead of double? Can you add RAM memory?
2 Comments
Image Analyst
on 25 Jun 2013
Use ./ instead of / to do an element by element division. A single, plain slash means a matrix divide so it has to calculate the inverse. You're essentially doing a least squares regression calculation, which is not what you want to do.
See Also
Categories
Find more on Whos 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!