| 9 | 1/1 | 返回列表 |
| 查看: 1502 | 回復: 8 | |||
[交流]
【討論】matlab 內存
|
|
我電腦是64bit win7,12G內存 不過聽說matlab能調用的內存有限,要進行設置,不然還是調不了這么大的內存 請問應該怎么設置呢?怎么查看我的matlab能調用多大的內存? 多謝啦~ |
» 搶金幣啦!回帖就可以得到:
+1/271
+1/231
+2/130
+1/91
+1/83
+1/35
+1/33
+1/31
+1/29
+1/28
+1/21
+1/20
+1/7
+1/6
+1/5
+1/4
+1/3
+1/2
+1/2
+1/1
|
我對Matlab只懂一點皮毛,下面是官網的一個說明:http://www.mathworks.com/support/tech-notes/1100/1106.html#5 64-Bit Architectures If you are using a 64-bit operating system in conjunction with a 64-bit version of MATLAB, it is theoretically possible to access approximately power(2,64) bytes of memory. This far exceeds the amount of memory available to any computer on the market today, so the amount of memory that is available to MATLAB will be limited by the amount of memory available on the computer. As this is typically related to the amount of available virtual memory (or swap space), you may want to consult Section 5 of this document. Note, however, that there is still a limit on the largest single array available in MATLAB. For more information about this topic, consult Solution 1-5193IK. 上面提到Matlab能調用的最大內存決定于電腦的內存,而這又受到虛擬內存的限制,所以需要把虛擬內存的容量甚至大一些吧。 matlab具體能支持多大的數(shù)據(jù)呢?我們可以使用memory命令來查詢。可以在matlab命令行輸入 memory 看看你的系統(tǒng)的限制 我的系統(tǒng)是: memory Maximum possible array: 1451 MB (1.521e+009 bytes) * 當前系統(tǒng)數(shù)組能占的最大內存 Memory available for all arrays: 1451 MB (1.521e+009 bytes) * 當前系統(tǒng)變量可被分配的空間 Memory used by MATLAB: 126 MB (1.320e+008 bytes) 已經使用的內存熟練 Physical Memory (RAM): 2038 MB (2.137e+009 bytes) 系統(tǒng)物理內存數(shù)量 * Limited by System Memory (physical + swap file) available. 打星號表示受限于系統(tǒng)內存和交換空間的大小 以上都是復制粘貼的……僅供參考哦 |
還有一個可能也有用。都是復制粘貼的東西,金幣就不必要啦![]() http://allenlukun.blog.163.com/b ... 092010431104758487/ MATLAB 內存容量修改 默認分類 2010-05-31 10:47:58 閱讀337 評論0 字號:大中小 訂閱 在用MATLAB做圖像處理時 經常會碰到內存溢出的情況,可用如下方法修改,使得MATLAB的內存容量最大: 出自matlab: matlab java.lang.OutOfMemoryError Java虛擬機內存不夠用了.可以增加最大內存設置. 1. 查找matlab根路徑.在matlab命令行中敲入:matlabroot 顯示根路徑,如:C:\MATLAB7 2.查看當前Java虛擬機最大堆內存, 敲入:java.lang.Runtime.getRuntime.maxMemory 3.查看Java虛擬機版本.敲入:version -java 4.在 $MATLAB\bin\$ARCH 路徑下新建java.opts文件. $MATLAB是根路徑,例如C:\MATLAB7 $ARCH是系統(tǒng)架構.例如win32,則在C:\MATLAB7\bin\win32下新建java.opts文件. 5.用記事本打開java.opts文件, 對于不同的版本的Java虛擬機,輸入: The following table shows the default settings MATLAB uses for versions of the JVM: JVM Initial Heap Size Max Heap Size 1.6.0 -Xms64m -Xmx128m (32-bit) -Xmx196m (64-bit) 1.5.0 -Xms64m -Xmx96m (32-bit) -Xmx128m (64-bit) 1.4.2 -Xms16m -Xmx96m 1.3.1 -Xms16000000 -Xmx64000000 1.2.2 -Xms16000000 -Xmx64000000 1.1.8 -ms16000000 -mx64000000 例如我的Java是1.4.2,在java.opts文件寫入-Xmx96m,保存就ok啦 如果輸入錯誤就報錯:warning : Failed to start to Java Virtual machine 6. 重啟matlab,敲入java.lang.Runtime.getRuntime.maxMemory 顯示最大內存改變,設置成功 |
| 9 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 284求調劑 +10 | Zhao anqi 2026-03-22 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 一志愿山東大學藥學學碩求調劑 +3 | 開開心心沒煩惱 2026-03-23 | 4/200 |
|
|
[考研] 299求調劑 +5 | 某某某某位 2026-03-21 | 5/250 |
|
|
[考研] 265求調劑 +10 | 梁梁校校 2026-03-17 | 10/500 |
|
|
[考研] 上海電力大學材料防護與新材料重點實驗室招收調劑研究生(材料、化學、電化學,環(huán)境) +3 | 我愛學電池 2026-03-23 | 3/150 |
|
|
[考研] 316求調劑 +7 | 梁茜雯 2026-03-19 | 7/350 |
|
|
[考研] 317求調劑 +12 | 申子申申 2026-03-19 | 18/900 |
|
|
[考研] 298求調劑一志愿211 +3 | 上岸6666@ 2026-03-20 | 3/150 |
|
|
[考研] 生物學調劑 +5 | Surekei 2026-03-21 | 5/250 |
|
|
[考研] 材料求調劑 +5 | @taotao 2026-03-21 | 5/250 |
|
|
[考研]
|
Grand777 2026-03-21 | 3/150 |
|
|
[考研] 材料 271求調劑 +5 | 展信悅_ 2026-03-21 | 5/250 |
|
|
[考研] 求調劑 +3 | .m.. 2026-03-21 | 4/200 |
|
|
[基金申請]
學校已經提交到NSFC,還能修改嗎?
40+4
|
babangida 2026-03-19 | 9/450 |
|
|
[考研] 求調劑 +3 | 白QF 2026-03-21 | 3/150 |
|
|
[考研] 材料學學碩080502 337求調劑-一志愿華中科技大學 +4 | 順順順mr 2026-03-18 | 5/250 |
|
|
[考研] 一志愿 西北大學 ,070300化學學碩,總分287,雙非一本,求調劑。 +4 | 晨昏線與星海 2026-03-19 | 4/200 |
|
|
[考研] 一志愿吉林大學材料學碩321求調劑 +11 | Ymlll 2026-03-18 | 15/750 |
|
|
[考研] 招收調劑碩士 +4 | lidianxing 2026-03-19 | 12/600 |
|
|
[考研] 085600材料與化工求調劑 +6 | 緒幸與子 2026-03-17 | 6/300 |
|