Azzera filtri
Azzera filtri

whats wrong with this code?

1 visualizzazione (ultimi 30 giorni)
Muazma Ali
Muazma Ali il 31 Lug 2022
Risposto: Walter Roberson il 31 Lug 2022
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.

Risposte (1)

Walter Roberson
Walter Roberson il 31 Lug 2022
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

Categorie

Scopri di più su Tables in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by