How to get details of variables?

22 vues (au cours des 30 derniers jours)
Zar
Zar le 16 Fév 2023
let supoose i run the code of file untitled i got just name in command window untitled.
clear all clc
D=15;
B=zeros(D,1);
for i=0:D-1
B(D)=i;
end
  2 commentaires
DGM
DGM le 16 Fév 2023
What exactly is the question?
Askic V
Askic V le 16 Fév 2023
Type "whos" in the command windows to get more information about the variables.

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 16 Fév 2023
clear all clc
D=15;
B=zeros(D,1);
for i=0:D-1
B(D)=i;
end
whos D
Name Size Bytes Class Attributes D 1x1 8 double
whos B
Name Size Bytes Class Attributes B 15x1 120 double
D
D = 15
B
B = 15×1
0 0 0 0 0 0 0 0 0 0

Plus de réponses (0)

Catégories

En savoir plus sur Entering Commands dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by