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)
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 で Earth, Ocean, and Atmospheric Sciences についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!