Understanding coding terminology - indexing

1 回表示 (過去 30 日間)
R L
R L 2021 年 10 月 10 日
回答済み: Jan 2021 年 10 月 10 日
I am currently going through the Matlab fundamentals course and am at the part of learning to do categories. As part of the section I'm on, it asks me to "Try indexing into y with iC and iNB" at the end of the section. It is not necessary for me to complete it to progress, however, I think it is better for me to at least understand it. As I have never formally been taught coding, I was wondering if someone could explain what the phrasing is actually telling me to do or let me know where I could find a clear text that explains it (and other coding terminology if possible!).
I tried to google but didn't find any clarity elsewhere.
Thanks in advance
  1 件のコメント
Jan
Jan 2021 年 10 月 10 日
The fragment "Try indexing into y with iC and iNB" is not enough to undestand, what you should do.

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

回答 (1 件)

Jan
Jan 2021 年 10 月 10 日
"Indexing" means to address an element of an array by using an index. Example:
x = [3,1,4]
index = 2
x(index) % reply: 1
This replies the 2nd element of x.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by