필터 지우기
필터 지우기

Anyone know what the "yyaxis" function is failing for this code?

조회 수: 2 (최근 30일)
Michael Marsh
Michael Marsh 2018년 2월 18일
댓글: Walter Roberson 2018년 2월 21일
"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')

답변 (1개)

Niwin Anto
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
Walter Roberson
Walter Roberson 2018년 2월 21일
yyaxis right has been present since yyaxis was introduced in R2016a.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by