problem accessing array of imported CSV file

4 ビュー (過去 30 日間)
fima v
fima v 2021 年 9 月 11 日
編集済み: Image Analyst 2021 年 9 月 11 日
Hello, after importing CSV file i have a variable 1D array called col
but when i try to accsess it in different forms as shown bellow it gives me those errors.
only when i did col(1) it worked.
when do i use each tipe of parenthsis in arrays?
Thanks.

回答 (1 件)

Image Analyst
Image Analyst 2021 年 9 月 11 日
編集済み: Image Analyst 2021 年 9 月 11 日
You need to use parentheses, not brackets:
col(1)
See the FAQ:
for an explanation for when to use each. In general, parentheses are for elements themselves. Brackets define arrays. Braces mean "contents of" container variables like cell arrays and tables.

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by