Visualizing data that is in a matrix.

1 次查看(过去 30 天)
Leon
Leon 2014-2-8
回答: Jan 2014-2-8
Hi all,
I am very stuck with a current coursework assignment and any help or insight would be much appreciated.
Since its course work I'll try and make it more general.
I've created a matrix of points that are points of a toroid. Starting my making a Circle and then rotating the original matrix of points using a z rotation matrix, in turn making a 3 x 421 matrix of points. I transposed that so my points are in column form as it seems this is a better way of handling it (421 x 3).
I want to use these points to use surf or mesh or similar to visualize my torus.
Any help would be massively appreciated.
Thanks.

回答(1 个)

Jan
Jan 2014-2-8
This is very similar to the cyclinder function, except for the bending. So take a look into this function:
edit cylinder

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by