Matlab column extraction sematics
이전 댓글 표시
I'm learning Matlab and taking the Signal Processing Onramp. Can someone explain the difference between the two statements below
form1 = quakes(:,"WANC")
form2 = quakes.WANC
form1 returns a timetable with 2 columns, time and the WANC data column.
form 2 returns a column vector with just the WANC data.
quakes is a timetable with several columns, one of which is named WANC.
I should also note that the 2nd statement of these two fail which sort-of makes sense since quakes.WANC doesn't contain time info.
bandpass(quakes(:,"WANC"), [2 10])
bandpass(quakes.WANC, [2 10])
I expected form1 to be the same as form2. Is there some guide to datatypes and operations on them in Matlab that would cover this?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!