Question about a way variable appears

6 visualizzazioni (ultimi 30 giorni)
Ennis
Ennis il 21 Nov 2023
Modificato: Image Analyst il 21 Nov 2023
A function is not displaying indiviual cells in Variables but content is fine when indexed through. The information in cells is populated by a _U function.
  2 Commenti
Dyuman Joshi
Dyuman Joshi il 21 Nov 2023
"A function is not displaying indiviual cells in Variables ..."
What/which function?
Image Analyst
Image Analyst il 21 Nov 2023
Modificato: Image Analyst il 21 Nov 2023
Do you mean that when you double click on the variable name in the Workspace panel to bring it up in its own panel, it shows that the cell is empty? But if you do something like
celldisp(ca)
or
ca{1}
it shows a value? Be more explicit in what you did, including code, or...

Accedi per commentare.

Risposte (2)

madhan ravi
madhan ravi il 21 Nov 2023
celldisp(Variables)
Variables{:}

Star Strider
Star Strider il 21 Nov 2023
Functions have their own workspaces. Variables internal to a function will not appear in the ‘Workspace’ window because it only displays variables in the main script workspace, not individual function workspaces.

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by