problem accessing array of imported CSV file
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/735419/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/735424/image.png)
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!