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

1 visualización (últimos 30 días)
% 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)

Respuesta aceptada

Chaitanya
Chaitanya el 11 de Jul. de 2023
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!

Más respuestas (0)

Categorías

Más información sobre MATLAB 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