What are All of the Variables in the Workspace on Answers?

1 回表示 (過去 30 日間)
Paul
Paul 2024 年 12 月 2 日
回答済み: Adam Danz 2024 年 12 月 16 日
What are all of these and should they be here?
whos
Name Size Bytes Class Attributes ans 1x1 8 double cmd 1x1 294 string cmdout 1x33 66 char gdsCacheDir 1x14 28 char gdsCacheFlag 1x1 8 double i 0x0 0 double managers 1x0 0 cell managersMap 0x1 8 containers.Map mshDir 1x18 36 char prefDir 1x1 170 string status 1x1 8 double
In particular, having an empty double named 'i' is not good as that can screw up code by shadowing the built-in function i that returns sqrt(-1).
clearvars
which i
built-in (/MATLAB/toolbox/matlab/elmat/i)
  5 件のコメント
Rena Berman
Rena Berman 2024 年 12 月 2 日
(Answers dev) @Paul, I'll report this.
Walter Roberson
Walter Roberson 2024 年 12 月 2 日
I reported the i situation several months ago.

サインインしてコメントする。

採用された回答

Adam Danz
Adam Danz 2024 年 12 月 16 日
Fixed! Thanks for reporting it.
myvar = 5;
whos
Name Size Bytes Class Attributes myvar 1x1 8 double

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by