surf plot from text file

8 Ansichten (letzte 30 Tage)
son nguyen xuan
son nguyen xuan am 21 Aug. 2019
Kommentiert: Walter Roberson am 5 Dez. 2021
i have text with data an di dont know how to create a surface plot using surf function.
load('exportfilecst4.txt');
X = exportfilecst4(:,1);
Y = exportfilecst4(:,2);
z1 = exportfilecst4(:,4);
z2 = exportfilecst4(:,5);
z3 = exportfilecst4(:,6);
Z = z3;
plot3(X,Y,Z,'*','markerSize',3);
grid on
this is my code right now
i have attach the text file bellow
can anyone change it to surface plot

Akzeptierte Antwort

Akira Agata
Akira Agata am 21 Aug. 2019
Like this?
data = dlmread('exportfilecst4.txt');
x = data(:,1);
y = data(:,2);
z = data(:,6);
figure
surf(reshape(x,31,[]),reshape(y,31,[]),reshape(z,31,[]))
surf.png
  7 Kommentare
형섭 김
형섭 김 am 5 Dez. 2021
Dear Akira
Thank you for your kindly advice.
I have question.
I didn't recognize your feedback until I access matlab site.
How can I check your feedback immediately?
From hskim
Walter Roberson
Walter Roberson am 5 Dez. 2021
When you are editing something here on MATLAB Answers, if you look between the edit box and the Cancel / Submit line, then there is a checkbox for "Follow activity on this question" and that is followed on the same line by "(change notification settings)". You can click on "notification settings" to access the Notification Preferences window.
The first preference you can set on that page is for
MATLAB Answers
Activity on questions you have followed in MATLAB Answers
If you select "High" then you will get notification by email as soon as there is any activity on a question you have "Followed". If you select "Medium" then you will get a list once a day by email about questions that there has been activity on. If you select "None" then there will be no email about MATLAB Answers activity.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by