How to connect previously stored data to a 3d Object?
Show older comments
Hello friends,
I am using an IMU and its data is getting stored in dynamic matrix of size 6*(nr_bytes/34) I am only reading the gyroscope data present at 4,5 and 6 using X = (inertial_data(4:6,:)); and it is coming properly but I want to plot the recieved data by creating a 3d object. For example I am creating a 3d object by
myaxes = axes('xlim',[-4,4],'ylim',[-4,4],'zlim',[-4,4]);
view(3);
%grid on;
axis equal;
hold on
xlabel('X')
ylabel('Y')
zlabel('Z')
[xcylinder ycylinder zcylinder] = cylinder([2 2]);
h = surface(xcylinder,ycylinder,zcylinder,'FaceColor', 'green');
and I want to give the readings of gyroscope to the xcylinder ,ycylinder and zcylinder of the script pls tell me how to do it?
1 Comment
Stefan Raab
on 21 Oct 2015
I think the values of [xcylinder ycylinder zcylinder] have to fulfill given constraints to describe a cylinder. How do you want to write the gyro-data in the cylinder data? I can't follow your thoughts, can you describe them a little bit more detailed please?
Answers (0)
Categories
Find more on Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!