Borrar filtros
Borrar filtros

Reordering matrix columns to be the same in two matrices

1 visualización (últimos 30 días)
Ciaran
Ciaran el 26 de Oct. de 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

Respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by