문제

I have this code:

h=plot(elapsedTime(1:length(elapsedTime)),velocityMagnitudeCentroide,'Parent',handles.grafico s2D)h=plot(elapsedTime(1:length(elapsedTime)),velocityMagnitudeCentroide,'Parent',handles.graficos2D);

hhTitle=title(gca,'Head Filtered 3D Velocity');
hhXLabel=xlabel(gca,'time(s)');
hhYLabel=ylabel(gca,'Velocity (m/s)');
hLegend = legend(h,'Head');

z=plot3(x3D,y3D,z3D,'Parent',handles.graficos3D);
set(handles.ui_label1, 'String', 'Max');
set(handles.ui_label2, 'String', 'Mean');
set(handles.ui_label3, 'String', 'Min');

hTitle=title('3D Position');
hXLabel=xlabel('time(s)');
hYLabel=ylabel('3D Position(m)');

which outputs this:enter image description here

What am I doing wrong?

도움이 되었습니까?

해결책

already figured it out..

answer: hhTitle=title(handles.graficos2D,'Head Filtered 3D Velocity');

Matlab is sensitive when he has two or more plots.. so you need to "actually" name the plot you wanna plot something.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top