What are "dimension names"?
Show older comments
I got an error message "Renaming dimension names is not supported using RENAMEVARS." What are "dimension names"? How can one rename "dimenion names"?
3 Comments
Image Analyst
on 19 Jun 2022
@alpedhuez after asking 426 questions you ought to know that you need to give more information. I'm sure you've been asked to read this link before
So, where is the error text? You know by now that we need ALL the red text, not just a small snippet from it. We especially need the actual line of code or full traceback. Did you try to do something to a table or a structure? I have no idea.
Image Analyst
on 19 Jun 2022
Edited: Image Analyst
on 19 Jun 2022
Since you won't show us your code, or tell us what you want to do, about all I can say are that for a regular 2-D matrix, the dimension names are "rows" and "columns". For 3-D you can call the third dimension "slice" or "Z". For a table, the dimensions are also rows and columns but are also called height and width, and there are height and width to determine those. For a table, the columns also have names, like column 1 of a table might be 'Date" and column 2 might be "weight" or whatever.
Dimension names are not really renamed. They are what they are (e.g. rows and columns). However you can rename a column in a table (the name of the column -- the header string you see above the column), if that's what you were trying to do.
For a structure, the dimensions I guess would be the number of field names the structure has. fieldnames
Accepted Answer
More Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!