Question about a way variable appears

1 次查看(过去 30 天)
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 个评论
Dyuman Joshi
Dyuman Joshi 2023-11-21
"A function is not displaying indiviual cells in Variables ..."
What/which function?
Image Analyst
Image Analyst 2023-11-21
编辑:Image Analyst 2023-11-21
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...

请先登录,再进行评论。

回答(2 个)

madhan ravi
madhan ravi 2023-11-21
celldisp(Variables)
Variables{:}

Star Strider
Star Strider 2023-11-21
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.

类别

Help CenterFile Exchange 中查找有关 Variables 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by