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!