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
조회 수: 5 (최근 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)
댓글 수: 0
채택된 답변
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 Center 및 File Exchange에서 Biological and Health Sciences에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!