Simulate continous model at predetermined time (Simulink)
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi
I have a set of data points [Time,Angle] of length about 45,000 .I need to compare this data against my model, to determine how accurate it is, using Coefficient of determination (R).
I've simulated my model for the same time period (50 seconds), with a fixed step, trying to achieve about 45k points, and exported the data. since the time of the original data and simulated time is not identical i have to either:
a. compare values of "Original" Vs "Estimated" at indeces from 1 to 45000, with error coming from time being different Or
b. compare values of "Original" Vs "Estimated" at time points not too far apart. such as (t_data - t_model<0.01sec).
is there a simpler way to accomplish that? I've thought of using a time vector as input but hav'nt found a way.
Any help would be much appreciated
댓글 수: 0
답변 (1개)
Fangjun Jiang
2020년 6월 3일
0 개 추천
If you can't really make the two sets of data have the same time samples, then you can utilize resample().
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!