I want to make one cycle of continuously drawn knee angles like the picture shown below. How should I implement it?

3 visualizzazioni (ultimi 30 giorni)
I want to make one cycle of continuously drawn knee angles like the picture shown below. How should I implement it?
The value for knee angle is attached separately.

Risposte (1)

Nihal
Nihal il 14 Set 2023
Hi GOTOTO,
I understand that you are trying to plot knee angle data on plot using MATLAB.
To plot the knee angle using MATLAB, you can read the file as a table and utilize the `figure` and `plot` functions to visualize the data. To plot multiple lines, you can use the `hold` feature to add additional line plots without removing the existing ones.
For more detailed information on the `plot` function, I suggest you refer to the MATLAB documentation available at: https://www.mathworks.com/help/matlab/ref/plot.html
To understand how to plot multiple lines using the `hold` function, please refer to the documentation provided here:
https://www.mathworks.com/help/matlab/ref/hold.html
Below is a sample code that demonstrates plotting multiple lines on a single figure:
x = linspace(-pi, pi);
y1 = sin(x);
plot(x, y1)
hold on
y2 = cos(x);
plot(x, y2)
hold off
This code creates a figure and plots `y1` as a sine wave using the `plot` function. The `hold on` command allows for adding subsequent line plots without removing the existing plot. Then, `y2` is plotted as a cosine wave using the `plot` function. Finally, the `hold off` command is used to release the hold state.
I hope this addresses your query. If you have any further questions, please let me know!

Community Treasure Hunt

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

Start Hunting!

Translated by