Plotting 2D graphs in scatter3
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to plot the 2D projections of the scatter3, is it possible? Heres what I have until now:
figure
[x,y,z] = sphere(16);
x = [19.39,12.65,21.1,15.19]; %B
y = [4.58,1.76,6.38,5.43]; %A
z = [82.42,74.16,81.41,79.25]; %L
scatter3(x,y,z,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0 .9 .75])
C = [0 .9 .75; 1 0 0; 0 0.4 0.4; 0.6 0.4 0];
scatter3(x,y,z,[],C,'filled','MarkerEdgeColor','k');
text (18.39, 4.58, 81.42, 'Resina 3')
text (13.65, 1.9, 75.16, 'A2')
text (22.1, 6.38, 82.41, 'Resina 2')
text (15.19, 5.9, 78.9, 'Resina 4')
axis ([5 30 0 10 70 90])
xlabel('*B')
ylabel('*A')
zlabel('*L')
view(35,10)
댓글 수: 1
August Brandberg
2015년 8월 10일
편집: August Brandberg
2015년 8월 10일
Onto what would you project the scatter points?
A plane made up of 2 cartesian axis? A 2D plane which minimizes the distance to the scatter points? (e.g. for dimensionality reduction) Something else? What is the significance of the sphere() on line which does not seem to be used?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!