필터 지우기
필터 지우기

how to create a vector for more than one frame of data?

조회 수: 1 (최근 30일)
Amanda
Amanda 2023년 2월 25일
답변: Walter Roberson 2023년 2월 25일
I am working on gait data and need to make a vector that corresponds to the time of each frame. The time vector needs to start at 0

답변 (1개)

Walter Roberson
Walter Roberson 2023년 2월 25일
Generally speaking, if you have samples that are not marked with a corresponding time, but you know the starting time (such as 0) and you know the sampling frequency, then you can calculate times as
time_vector = (0:number_of_samples-1) ./ SamplingFrequency;
number_of_samples would typically have been extracted using size() of an array. SamplingFrequency would have to be known ahead of time (or extracted from the information available in the dataset.)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by