Anyone know what the "yyaxis" function is failing for this code?
2 次查看(过去 30 天)
显示 更早的评论
"Error using yyaxis
Unknown command option right"
Code:
yyaxis left
plot(AM_TO);
xlabel('Time (sans-units, data was collected at 100Hz)')
ylabel('Acceleration (m/s2)')
title('Torso IMU acceleration forward')
hold on
yyaxis right
plot(HR_int,'r','linewidth',1.1);
ylabel('Heart Rate')
0 个评论
回答(1 个)
Niwin Anto
2018-2-21
The code snippet you have provided is working fine on my end.
yyaxis left;
plot(AM_TO);
xlabel('Time (sans-units, data was collected at 100Hz)');
ylabel('Acceleration (m/s2)')
title('Torso IMU acceleration forward')
hold on ;
yyaxis right;
plot(HR_int,'r','linewidth',1.1);
ylabel('Heart Rate')
Which MATLAB version are you using?
1 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!