whats wrong with this code?

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.

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 7 月 31 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeTables についてさらに検索

質問済み:

2022 年 7 月 31 日

回答済み:

2022 年 7 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by