I need data to be sorted but be consistent from the data values they came from

5 visualizaciones (últimos 30 días)
Chetan Roshan
Chetan Roshan el 2 de Mayo de 2020
Respondida: BhaTTa el 8 de Dic. de 2024 a las 7:42
These data points below correspond to each other. (Electric motor, that's why the torque curve is like that)
A code in my line tells me that they should be in ascending order.
Code:
VqLite = matlab.internal.math.interp1(X,V,method,method,Xqcol);
After I sorted the data in Excel in ascending order and ran the program, it gave me the same error that they need to be in ascending order.
So, i'm guessing that both columns need to be in ascending order, but that doesn't seem possible because the data is set the way it is.
Is there a way to sort data in MATLAB so that they get sorted but still correspond to each other?

Respuestas (1)

BhaTTa
BhaTTa el 8 de Dic. de 2024 a las 7:42

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by