[Show all top banners]

daurasurwal
Replies to this thread:

More by daurasurwal
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Matlab Help
[VIEWED 6490 TIMES]
SAVE! for ease of future access.
Posted on 10-27-11 8:12 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

I have to join two tables using matlab code.


Table A                                                                                                          Table B

Time                          BPM                                                                                    Time                     Velocity                            Acceleration          BBB
101                              78                                                                                          100                        1                                     1.2                             2
102                               46                                                                                          100.9                     2                                    1.5                              3
103                               32                                                                                           101.2                    3                                     1.6                             4
104                                43                                                                                           102.1                    4                                     1.8                              5
105                                100                                                                                          103.5                   5.5                                   2                               6
106                                102

I need to join table B with Table A with refrence to time. Since the time is not same interval, each data in table has to be interpolated to match with time of table A.  The final table is Table A with with new columns with  interpoltaed Velocity, acceleration, BBB corresponding to time in table B.

Please help, hoe to do it using Matlab codes?

Thanks

 
Posted on 10-28-11 12:12 AM     [Snapshot: 94]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 ur table messed up .. can u give me the link of the original problem?
 
Posted on 10-28-11 1:23 AM     [Snapshot: 120]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Format your table properly then i think i can help you !
Last edited: 28-Oct-11 01:23 AM

 
Posted on 10-30-11 2:01 AM     [Snapshot: 254]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 
 
Posted on 10-30-11 9:10 AM     [Snapshot: 294]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 @Sunil 

I ve assumed that time is only the independent variable and all other parameters depends solely on time. 
I ve done for velocity and acceleration and you can complete BB and DD.
I ve used cubic spline algorithm (it fits the cubic polynomial betn the spaced data).

%% 1D Cubic Spline interpolation of tabulated data 
% By Alter Ego @ 10/30/11
% Vel., Acc, BB and DD are assumed to be dependend solely on time 
 
time = [99.9 100.5 101.8 102.7 103.9 104.8 105.6 106.1 106.5 106.8 107.3 107.9 110.2 111.5 112.8];
velocity = 2:2:30;
acceleration = 3:2:31;
timei = 100:112;
velocityi = spline(time, velocity, timei);
accelerationi = spline(time, acceleration, timei);
 
%% New table 
 
bpm = [87 88 85 86 86 78 98 87 85 86 86 78 98]; 
newtable = [timei' bpm'  velocityi'  accelerationi'];
 

 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 60 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
TPS Re-registration case still pending ..
Basnet or Basnyat ??
मन भित्र को पत्रै पत्र!
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
TPS Work Permit/How long your took?
Guess how many vaccines a one year old baby is given
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
Travelling to Nepal - TPS AP- PASSPORT
Nepali doctors future black or white usa ?
Doctors dying suddenly or unexpectedly since the rollout of COVID-19 vaccines
Morning dharahara
nrn citizenship
Another Song Playing In My Mind
TPS Renewal Reregistration
WHAT DO YOU GUYS THINK ABOUT THIS?
हेर अमेरिकामा नेपालीहरुको बेज्जत
Informatica consultancy share
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters