Performance Measures - Comparing measurement data with simulation data
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
vidyesh
on 21 Feb 2024
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.
0 Comments
See Also
Categories
Find more on Correlation Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!