필터 지우기
필터 지우기

3D graph in three 2D graph

조회 수: 1 (최근 30일)
Modestas Sekreckis
Modestas Sekreckis 2011년 5월 22일
Hi how can I get from 3D graph three 2D. In my language is called "epura". I have this graf: http://img854.imageshack.us/img854/5839/matlaboklausimas1.png
I need to do something like this:
On this example, I used the command "subplot". I think that there should be a simpler way to do it

채택된 답변

Patrick Kalita
Patrick Kalita 2011년 5월 27일
Using is a subplot part of a very good way of doing this. You can use it in conjunction with copyobj to make the process fairly automatic.
Here's the general idea. You can copy the original scene to three new axes (created with subplot) and then adjust the View property of the three new axes to get the desired views.
Here's an example:
% The original scene
a = axes;
surf(peaks);
% Make a new figure with three subplots:
f = figure;
a1 = subplot(2,2,1,'Parent',f);
a2 = subplot(2,2,2,'Parent',f);
a3 = subplot(2,2,3,'Parent',f);
% Copy contents of the original axes into the new axes
copyobj(get(a, 'Children'), a1);
copyobj(get(a, 'Children'), a2);
copyobj(get(a, 'Children'), a3);
% Set the view of the three new axes
view(a1, [0 0]);
view(a2, [90 0]);
view(a3, [0 90]);

추가 답변 (2개)

bym
bym 2011년 5월 22일
I don't think there is an easier way, but you might want to check this out

Modestas Sekreckis
Modestas Sekreckis 2011년 5월 27일
Is there an easier way?
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 5월 27일
What form is your data in?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by