Reordering matrix columns to be the same in two matrices

1 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by