whats wrong with this code?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi !
This is a code taken from mathworks.com webpage. When I run this code, I get an error saying undefined variable or function Lastname. I really dont understand what I have forgotten to do here.
댓글 수: 0
답변 (1개)
Walter Roberson
2022년 7월 31일
my_tab.Properties.RowNames = LastName;
You are referring to LastName with a capital N. You have not defined a LastName with a capital N: you have defined Lastname with a lower-case N
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!