Can someone help me with the floor command of matlab?

1 Ansicht (letzte 30 Tage)
sanyukta
sanyukta am 2 Jun. 2020
Kommentiert: sanyukta am 2 Jun. 2020
I am stuck in one equation of Matlab program with 'floor' command.
n1=floor(1:n/N:n)
=62
Here, 1: n=1:930 and N:n=15:930
How 62 is obtained?
Also, I have found that n1 consists of 15 values and its dimension is 1x15. Please help me to understand how 1:930 (930 values) divided by 15:920(<930 values) results in 15 values?

Akzeptierte Antwort

KSSV
KSSV am 2 Jun. 2020
n = 930 ; N = 15 ;
% this step 1:n/N:n is same as
dn = n/N ;
n1 = 1:dn:n
  5 Kommentare
KSSV
KSSV am 2 Jun. 2020
Thats fine......and thanks is accepting the answer... :)
sanyukta
sanyukta am 2 Jun. 2020
Oh yes. Accepted it

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by