From: onur yasarlar on
hi everyone;
i'm new at matlab so my question will be very easy to answer.
i want to draw a cube with some edge value and then rotate the cube about x and z axis (ex: for x:30degree, for z:40 degree).
i tried to write a transformation matrix to multiply but i could not figure it out.
in the forum i found a for loop with patch command to do create a cube but i couldn't understand the code.
please help;

best regards...
From: Rune Allnor on
On 28 Feb, 14:25, "onur yasarlar" <yasarlar_o...(a)hotmail.com> wrote:

> i want to draw a cube with some edge value and then rotate the cube about x and z axis (ex: for x:30degree, for z:40 degree).
> i tried to write a transformation matrix to multiply but i could not figure it out.

doc patch
doc view

Rune
From: Jan Simon on
Dear Onur!

> i want to draw a cube with some edge value and then rotate the cube about x and z axis (ex: for x:30degree, for z:40 degree).
> i tried to write a transformation matrix to multiply but i could not figure it out.

Please show us what you've tried. Then CSSMers can help you to improve the program.

> in the forum i found a for loop with patch command to do create a cube but i couldn't understand the code.
> please help;

We cannot help you to understand the code, if you do not show it!

Kind regards, Janh