Legend, ylabel, xlabel glitched?

Hi, So im not sure why but for some reason my matlab plots looks like this (specifically the legend and axes)
Anyone know why or know a fix?

6 Commenti

png attached
Posting both the data and code would help.
It’s not possible to fix it if it’s not possible to figure out where the problems are.
clear
opengl software
quat = importdata('quattest.xlsx'); %insert filename of data
q0 = quat(:,1); % grabbing column vectors for quternion data
q1 = quat(:,2); %column 2
q2 = quat(:,3); %column 3
q3 = quat(:,4); %column 3
q = [q0 q1 q2 q3];
%creating time vector
T = 1/64;
t = (0:1261-1)*T; %creates time vector based off of EPOC+ sampling rate
% yaw, pitch, roll angle Vector
[yaw, pitch, roll] = quat2angle([q0 q1 q2 q3]);%converts quaternion data to yaw pitch and roll
yawangle = (180/pi)*yaw;
pitchangle = (180/pi)*pitch;
rollangle = (180/pi)*roll;
% Rotation angle Vector
eul = quat2eul([q0 q1 q2 q3]);
XAngle = eul(:,1)*(180/pi);
YAngle = eul(:,2)*(180/pi);
ZAngle = eul(:,3)*(180/pi);
%plotting data
figure;
plot(t,rollangle, t, pitchangle, t, yawangle);
title('Quaternion Angles Overtime');
xlabel('time(seconds)');
ylabel('Angle(degrees)');
legend('Roll Angle', 'Pitch Angle', 'Yaw Angle');
here it is @Star Strider
Adam Danz
Adam Danz il 14 Apr 2021
We can't run your code because we don't have access to the data as Star Strider requested (you could attach it).
I don't see anything in the code that would cause this problem. What is your matlab release?
Hi,
can you attach the quattest.xlsx file

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Richiesto:

il 12 Apr 2021

Commentato:

il 20 Apr 2021

Community Treasure Hunt

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

Start Hunting!

Translated by