Reordering matrix columns to be the same in two matrices

1 Ansicht (letzte 30 Tage)
Ciaran
Ciaran am 26 Okt. 2015
I have two matrices one containing experimental and the other simulated output from an ODE model and I want to subtract the simulated matrix from the experimental.The columns however have been reordered in the experimental matrix such that I can no longer just perform the subtraction. My question is how could I reorder one of the columns of one matrix to be the same as the columns in the other matrix based on the column headings? Additionally, I need this to work for every experimental/simulated data pair of matrices.
Code so far:
data=xlsread(data_file); %experimental
traj=SBsimulate(model,start_time:(end_time/number_of_points):end_time) %simulated
Thank you

Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by