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!