Making a circular plot of muscle activation

Hi
I have some muscle activity data from four muscles in cycling, that I would like to present in a round plot, so that it is possible to see in which degrees the muscle is active (above 0,5) - like in the attached picture.
I can't seem to figure out how to do this i Matlab
Thanks in advance!

 Accepted Answer

The polarplot (link) function was introduced in R2016a. If you have it, the plotting is straightforward. (The polar function is much more difficult to work with, and offers few options.)
This will get you started:
Biceps = [100 : 235];
Triceps = [200 : 370];
figure(1)
polarplot(Biceps*pi/180, 0.7*ones(size(Biceps)), 'y', 'LineWidth',1)
hold on
polarplot(Triceps*pi/180, 0.5*ones(size(Triceps)), 'g', 'LineWidth',1)
hold off
set(gca,'ThetaZeroLocation','bottom', 'RLim',[0 1])
legend('Biceps', ',Triceps', 'Location','NorthEastOutside')
The angles must be in radians, the angle and the radius must be defined for each point, and if you want to cross (as I did with ‘Triceps’), define the angle to greater than 360°. For more options, see PolarAxes Properties linked to at the end of the polarplot documentation page.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!