Looking for help to Interpolate a column of data in a timeseries data set

1 view (last 30 days)
I have been doing a pressure experiemnt on a CAARC building model that has resulted in a rather large data set.
Unfortunately one of my pressure taps ended up breaking on the model in a position that was rediculously hard to get to, and as such the data from that point was rendered useless.
The model has 240 pressure taps so its not the end of the world, though im hoping that there is a way for me to interpolate the the pressure at that point on the model from the surrounding taps.
Unfortunately the files are ~ 29mb so as such I cannot upload them so I have put them on google docs.
I am looking to interpolate pressure tap 105 which sits in column 106 in the data sets as can be seen in the attached screenshot, I have also atached a diagram of the pressure tap locations and the distances between the pressure tap locations
Z_PreTap=fliplr([90:90:810,855]); % Heights of each level of pressure tubes
X_PreTap_side=[15,30:30:120]; % Streamwise coordinates of pressure tubes on side faces
If anyone can help I would be incredibly appreciative.

Accepted Answer

darova
darova on 4 Aug 2019
I uploaded your data and tried to visualize it
% first column - time
Z = data{:,2:end};
Z1 = Z(1:600:end,1:3:end); % reduce data a bit
[X,Y] = meshgrid(1:size(Z1,2),1:size(Z1,1));
surf(X,Y,Z1);
I see this
img100.png
What needs to be interpolated?
  5 Comments
Imran Joseph
Imran Joseph on 5 Aug 2019
Edited: Imran Joseph on 5 Aug 2019
Thank you so much darova, you are an absolute life saver.
Turns out the peice of code that helped the most was the Z0(5,5) = nan;
It made all of the difference by getting matlab to just ignore the column. I had no idea that that was possible.

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing 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!