How to get details of variables?

7 views (last 30 days)
Zar
Zar on 16 Feb 2023
Answered: Image Analyst on 16 Feb 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 Comments
DGM
DGM on 16 Feb 2023
What exactly is the question?
Askic V
Askic V on 16 Feb 2023
Type "whos" in the command windows to get more information about the variables.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 16 Feb 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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!