how to cut the data of vertical force relativized the body weight considering that it is equal to or greater than 10%, only obtain that point of the data

3 次查看(过去 30 天)
% Identificar el 10% de la fuerza vertical
limiteCorte = 0.1 * max(grfRelativizadaVertical);
% Encontrar el índice del dato mayor o igual al 10% de la fuerza vertical
indiceCorte = find(grfRelativizadaVertical >= limiteCorte)
% Cortar la fuerza vertical a partir del dato identificado
fuerzaVerticalCortada = grfRelativizadaVertical(indiceCorte,1);
% Mostrar los resultados
disp('Fuerza Vertical Original:');
disp(grfRelativizadaVertical);
disp('Fuerza Vertical Cortada:');
disp(fuerzaVerticalCortada)
plot(fuerzaVerticalCortada)

采纳的回答

Chaitanya
Chaitanya 2023-7-11
To cut the data of the vertical force relativized to the body weight, considering that it is equal to or greater than 10%, and obtain only that point in the data, you can use the following code:
% Assuming you have the variable 'grfRelativizadaVertical' containing the vertical force data
% Identify the 10% of the maximum vertical force
limiteCorte = 0.1 * max(grfRelativizadaVertical);
% Find the index of the data point that is greater than or equal to the 10% of the vertical force
indiceCorte = find(grfRelativizadaVertical >= limiteCorte, 1);
% Cut the vertical force data from the identified index onwards
fuerzaVerticalCortada = grfRelativizadaVertical(indiceCorte:end);
% Display the original and cut vertical force data
disp('Fuerza Vertical Original:');
disp(grfRelativizadaVertical);
disp('Fuerza Vertical Cortada:');
disp(fuerzaVerticalCortada);
% Plot the cut vertical force data
plot(fuerzaVerticalCortada);
In this code, the `find` function is used to find the index of the first data point that satisfies the condition `grfRelativizadaVertical >= limiteCorte`. The `1` as the second argument of `find` ensures that only the first index is returned. Then, the vertical force data is sliced from the identified index onwards using `fuerzaVerticalCortada = grfRelativizadaVertical(indiceCorte:end)`. Finally, the original and cut vertical force data are displayed, and the cut data is plotted.
Hope this helps!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Earth, Ocean, and Atmospheric Sciences 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by