필터 지우기
필터 지우기

How do we rotate two different image objects at the same time in a plot

조회 수: 3 (최근 30일)
D_coder
D_coder 2020년 5월 19일
편집: Ameer Hamza 2020년 5월 19일
so lets say I have a 3D surf plot with three different surface objects s1, s2, s3
is it possible to use rotate function to rotate all the three objects at the same time , instead of calling the function three times.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 5월 19일
편집: Ameer Hamza 2020년 5월 19일
rotate accepts an array of the surface handles. Try this
hold on
view(3)
s1 = surf(peaks(20));
s2 = surf(rand(20));
rotate([s1 s2], [1 0 0], 30);

카테고리

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