what is the meaning of code?

5 views (last 30 days)
aisha
aisha on 18 Sep 2013
t = 5;
nt = length(invest(:,1));
n = nt/t;
qn = 400; % number of quantiles to examine
what does this nt, n= nt/t mean and how no of quantiles are determined in data to enter i code.

Answers (1)

Walter Roberson
Walter Roberson on 18 Sep 2013
nt/t means nt is to be divided by t -- so the number of rows is to be divided by 5.
Why that should be done is not known from the context you have given.
  3 Comments
Image Analyst
Image Analyst on 18 Sep 2013
You have shown no code after qn has been defined so we have no idea how it's going to be used.
Walter Roberson
Walter Roberson on 18 Sep 2013
q=400 means to assign the double precision representation of the integral value (decimal) 400 to the variable named "gn".
Why that should be done is not known from the context you have provided.

Sign in to comment.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!