Performance Measures - Comparing measurement data with simulation data

2 次查看(过去 30 天)
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