필터 지우기
필터 지우기

Performance Measures - Comparing measurement data with simulation data

조회 수: 3 (최근 30일)
Ali Saremi
Ali Saremi 2021년 5월 24일
답변: vidyesh 2024년 2월 21일
Hi there,
I have some observation and simluation data, and I would like to compare these two time-series to obtain the following parameters:
Mean error, root mean square error, correclation coffiction etc. Also, I need to plot the scatter plot.
I have attached the mat files including the TimeTable simulation and Observation data.
If anyone could help me with that, I would much appreciate it. Thank you and I look forward to hearing from you.
Regards,
Ali

답변 (1개)

vidyesh
vidyesh 2024년 2월 21일
Hi Ali,
I am assuming you want to perform mathematical operations on data that share the same timestamps. To accomplish this, we need to first identify the common timestamps between the two datasets.
The code below will help you extract the data with common timestamps from both models:
load('TTobservation.mat');
load('TTSimulation.mat');
common_time = intersect(obs.Date,model.Date);
obs_2 = obs(common_time,:);
model_2 = model(common_time,:);
obs_data = obs_2.Obs;
model_data = model_2.THOffshore_SurfaceElevation;
Now that we have synchronized the data, we can proceed with the desired operations using MATLAB functions such as rms and corr.
For more information on the intersect, corr, and rms functions, you can refer to the following pages:
Hope this helps.

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by