How do I find a single value by corresponding data in 2 different tables?
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Estimate Parameters and States 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!