3D plotting in MATLAB

1 ビュー (過去 30 日間)
Amit Chakraborty
Amit Chakraborty 2022 年 6 月 9 日
I have 3 sensors wich are situated in X Y Z axes.
From those sensors , I have a data which is a 3D matrix. The question is :
a) Need to plot the position data(3D matrix) as circles using plot3
b) Also Need to plot a 1cm long line into both directions along the sensor's orientation.
% My probable Solution for First Part
sensor_data = randi([1 10],16,16,16); %
grid on
% My probable Solution for Second Part
plot3(xt, yt, zt, 'LineWidth',1);
grid on
I am confused with the second portion specifically : "Need to plot a 1cm long line into both directions" .
Are my solutions correct ? or what might be the probable solution for second part.

回答 (0 件)


Community Treasure Hunt

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

Start Hunting!

Translated by