Documentation Center

  • Trial Software
  • Product Updates

Manipulate Structures and Cell Arrays

Tips that you might find useful for working with the variables that debugger functions return are:

  • If a cell array shows something like [1x51 char] instead of exact block path names when you enter the variable name alone at the command prompt, use content indexing to display the cell contents explicitly. Content indexing uses curly braces, {}. For an example, see the sedb.blklist reference page.

  • To access information in nested structures, append nested field names using dot notation. For an example, see the sedb.eninfo reference page.

  • You can assign numeric values of like-named fields in a structure array to a numeric vector. To do this, enclose the array.field expression in square brackets, []. For an example, see the sedb.evcal reference page.

  • You can assign string values of like-named fields in a structure array to a cell array. To do this, enclose the array.field expression in curly braces, {}. For examples, see the sedb.blkinfo and sedb.breakpoints reference pages.

  • You can gather information about like-named fields in a structure array that satisfy certain criteria, by invoking find and using its output to index into the structure array. For examples, see the sedb.evcal and sedb.breakpoints reference pages.

Was this topic helpful?