How to put points from file to create 3D.?

조회 수: 1 (최근 30일)
Lalit Patil
Lalit Patil 2012년 12월 5일
I have this text file,
And script for it is,
fileID = fopen('New3d.txt');
C = textscan(fileID, '%f %f %f');
fclose(fileID);
x=cell2mat(C(:,1));
y=cell2mat(C(:,2));
z=cell2mat(C(:,3));
patch(x,y,z,'R')
view(3)
axis equal off tight vis3d; camzoom(1.2)
colormap(spring)
rotate3d on
I have written this script to create 3D..
But this script connects all the points in image, where as i only want only to put the poins, so, how to do it..?

답변 (1개)

Walter Roberson
Walter Roberson 2012년 12월 5일
Instead of using patch(), use
scatter3(x,y,z)
  댓글 수: 1
Lalit Patil
Lalit Patil 2012년 12월 5일
Yes, i already tried it. But, it is also showing so big blue circle dots. As my text file points are so dense, so i want only point which looks like just a dot..

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

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by