Warning: The DrawMode property will be removed in a future release. Use the SortMethod property instead. > In SixDofAnimation (line ...)

25 次查看(过去 30 天)
Hi. I am just a starter on Matlab. And I have a problem.
I am working with imu sensor (MPU6050) on Matlab R2018a. When I run the program, I have "Warning: The DrawMode property will be removed in a
future release. Use the SortMethod property instead.
> In SixDofAnimation (line 98)
In Script (line 150)
Error using matlab.graphics.chart.primitive.Line/set
Invalid or deleted object.
Error in SixDofAnimation (line 220)
set(orgHandle, 'xdata', x, 'ydata', y,
'zdata', z);
Error in Script (line 150)
SixDofAnimation(posPlot, quatern2rotMat(quatPlot),
..." on Command Window. How can I fix this problem.
Thanks for your answers.
set(gca, 'drawmode', 'fast'); %6DoFAnimation
set(gca, 'drawmode', 'fast');
lighting phong;
set(gcf, 'Renderer', 'zbuffer');
hold on;
axis equal;
grid on;
view(View(1, 1), View(1, 2));
title(i);
xlabel(Xlabel);
ylabel(Ylabel);
zlabel(Zlabel);
SixDoFAnimation(posPlot, quatern2rotMat(quatPlot),... %Script
SixDofAnimation(posPlot, quatern2rotMat(quatPlot), ...
'SamplePlotFreq', SamplePlotFreq, 'Trail', 'All', ...
'Position', [9 39 1280 768], 'View', [(100:(Spin/(length(posPlot)-1)):(100+Spin))', 10*ones(length(posPlot), 1)], ...
'AxisLength', 0.1, 'ShowArrowHead', false, ...
'Xlabel', 'X (m)', 'Ylabel', 'Y (m)', 'Zlabel', 'Z (m)', 'ShowLegend', false, ...
'CreateAVI', false, 'AVIfileNameEnum', false, 'AVIfps', ((1/samplePeriod) / SamplePlotFreq));

采纳的回答

Walter Roberson
Walter Roberson 2019-7-16

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 ThingSpeak 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by