フィルターのクリア

Viewing Variable's memory location content?

3 ビュー (過去 30 日間)
Bob Li
Bob Li 2011 年 10 月 14 日
Hi,
I would like to ask a question on variable display.
In C/C++, during debugging one can view variables directly at their memory location, and in most IDEs could you could choose display option (decimal, hex, binary, etc.).
Is it possible view variables like this in Matlab?
Does Matlab allow memory access? A little deeper: if Matlab is written in Java, does JVM, during bytecode execution, allow viewing memory location contents of variables?
Bob

採用された回答

Jan
Jan 2011 年 10 月 14 日
Matlab is not written in Java.
You can display the memory location of arrays by:
format debug
In addtion you can call a C-Mex file, which allows full access of the underlying data structure. But this structure is not documented and subject to changes. You can look in the FEX submissions of James Tursa to learn more about this: FEX: Author James Tursa
  5 件のコメント
Jan
Jan 2011 年 10 月 14 日
@Bob: Correct. The memory management, mxArray structs, indexing, +-*/ is implemented in C. Linear algebra calls BLAS (I assume the FORTRAN version) or MKL (Assembler), and MEAN is an M-file.
Bob Li
Bob Li 2011 年 10 月 14 日
Jan,
Do you know how to enable email notification for answer's comments? I never got a single notification for comments, and it seems there is no things like "configuration/options" in account setting to enable this?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by