Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Michael Marsh
Michael Marsh le 18 Fév 2018
Commenté : Walter Roberson le 21 Fév 2018
"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')

Réponses (1)

Niwin Anto
Niwin Anto le 21 Fév 2018
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 commentaire
Walter Roberson
Walter Roberson le 21 Fév 2018
yyaxis right has been present since yyaxis was introduced in R2016a.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by