How to list object properties of an object vector in the variable editor? (like a structure vector)

조회 수: 2 (최근 30일)
Hello, I am trying to transform some of my program code into classes. My old programm uses a vector of structures and I like the feature of the variable editor, where it shows me the vector as a table: The rows are the structures and the columns are the field values. Is there a way to display an object vector the same way? The rows should be the objects and the columns the object properties.
Apart from that, is there a way to show private properties in the variable editor?
Thanks for your help!
  댓글 수: 2
per isakson
per isakson 2014년 12월 11일
편집: per isakson 2014년 12월 11일
"Apart from that, is there a way to show private properties in the variable editor?" &nbsp the smelly way is struct( obj )
Adam
Adam 2014년 12월 11일
Object arrays just show as the name of the object in multiple cells of the variable editor and you have to dig down further to see anything, unless I am missing some setting that allows more useful visualisation in the variable editor.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Customize Object Display for Classes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by