Can't change variable name or delete variable

조회 수: 1 (최근 30일)
Ross
Ross 2012년 3월 13일
I have a struct xxx with a field struct yyy containing 2 fields aaa and bbb of simple values. - With the variable editor I can double click on xxx, then yyy to see the column of 18 <1x1 struct>s. - Double clicking on any of the latter opens the variable editor table showing fields aaa and bbb for editing. - I can then right click in empty space in table to create a new field ccc. - when I right click on ccc to delete or it, the editor acts as if OK but nothing is done. - when I right click on either aaa, bbb or ccc to try Rename I get the error message name not allowed despite it being a short and fully legal combination of letters only (have tried many without success).
CAN ANYONE PLEASE HELP ME UNDERSTAND WHAT IS WRONG?
  댓글 수: 1
Jan
Jan 2012년 3월 13일
Please post the code which you use to create the struct. Following the textual descritbtion is prone to errors.
Then post the name you are trying to use without success - there is no chance that we can guess this detail.

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

답변 (1개)

Walter Roberson
Walter Roberson 2012년 3월 13일
Every member of a structure array must have the same set of field names in the same order. Editing the field names for a single member of the array is probably not going to work.

카테고리

Help CenterFile Exchange에서 Scripts에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by