Hello, I could use some of your help. How do you write this on Matlab?
e. rate of 100
f. dt as time between each sample per second
g. n as length of cop_ml1
h. totaltime based on length and rate
i. time as a logical index of dt and totaltime
%Create variables for rate, timeinterval, num, totaltime and time
rate = 100;
timeinterval = 1/dt; %between each sample per second
num = length(cop_m11); %finds number of length of cop_m11 collected
totaltime = length/rate; %total time that data was collected
time = timeinterval:timeinterval:totaltime; %creates time base for data
The bold one came on error Unrecognized function or variable 'dt'.
Error in VArpAssignment7 (line 31)
timeinterval = 1/dt; %between each sample per second

답변 (2개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 4월 23일

0 개 추천

timeinterval = dt; % not 1/dt that would be sampling frequency

댓글 수: 1

Vanessa Arp
Vanessa Arp 2020년 4월 23일
Unrecognized function or variable 'dt'.
Error in VArpAssignment7 (line 31)
timeinterval = dt; %between each sample per second
I dont understand why that is error? do you know why?

댓글을 달려면 로그인하십시오.

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 4월 23일

0 개 추천

did you define dt? if not, you have to

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2020년 4월 23일

댓글:

2020년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by