How do I find a single value by corresponding data in 2 different tables?

1 回表示 (過去 30 日間)
Akshay Vivek Panchwagh
Akshay Vivek Panchwagh 2022 年 3 月 16 日
So I have a MATLAB code in which I have a row vector of 1x25 obtained through experiments. The data in this vector is a normalised signal from 1 to 0, for different timesteps starting from 5ns to 235ns, and increasing in timesteps of 10. I have another table of 226x15 obtained through a model, in which there are 226 timesteps with an increment of 1 and the 15 corresponds to the sizes of diameters, starting from 10nm and increasing in steps of 10. The values in this table are also of normalised signals.
The task I have at hand is to link the values of normalised signal in the 1x25 vector with the values of the signals in the 226x15 double for a given timestep and find out to which values of diameters do the normalised values in the 1x25 correspond the most. Through this I have to find a single value of diameter which says that this diameter was more prevalent for a particular signal.
How do I approach this task?

回答 (1 件)

Eric Sofen
Eric Sofen 2022 年 3 月 17 日
It sounds like you are trying to align these two things based on time? If so, check out the synchronize method of timetable. There are a bunch of different synchronization options, but it sounds like the 'nearest' method will do the trick.
  1 件のコメント
Akshay Vivek Panchwagh
Akshay Vivek Panchwagh 2022 年 3 月 20 日
Thank you for your help. Actually I did not frame the question correctly, due to which it could have led to a confusion. I need to solve it differently than using the synchronize method.
I need to find the least difference between the signals obtained experimentally and through a mathematical model for a given timestep, from which I can obtain the further desired values of diameters. But perhaps I can look into this 'nearest' method that you have mentioned.
Thanks a lot for your inputs!



Help Center および File ExchangeEstimate Parameters and States についてさらに検索




Community Treasure Hunt

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

Start Hunting!

Translated by