Hello! I
I have a file which contains 3 coordinates (x,y,z) and the value of the function in these coordinates. What code should I use to plot a 3D contour plot?
I attached a picture as an example of what I want to get. Tje contour of the figure will be different, but I know how to plot it.
-----------------------------------------------------------------------------
-1 -1 -1 -20
-0.98 -1 -1 10
-0.96 -1 -1 1
-0.94 -1 -1 25
-0.92 -1 -1 -5
-0.9 -1 -1 6
-0.88 -1 -1 7
-0.86 -1 -1 6
-0.84 -1 -1 9
-0.82 -1 -1 10
-0.8 -1 -1 -2
-0.78 -1 -1 -18
-0.76 -1 -1 -15
-------------------------------------------------------------------------------
File data.txt has 1030302 rows, 9 columns, but only the first 4 columns are important for me.

댓글 수: 3

KSSV
KSSV 2021년 3월 1일
It depends is your data is structured or unstructured. Attach your data.
ANKUR KUMAR
ANKUR KUMAR 2021년 3월 1일
You can take a look into this document:
Daria Lonkina
Daria Lonkina 2021년 3월 2일
편집: Daria Lonkina 2021년 3월 2일
@KSSV I'm attaching file with data. I'l be wery happy of you can help me!
The first three rows are coordinates, and the fourth row is a nessecary the value of function for me.

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

답변 (1개)

Shadaab Siddiqie
Shadaab Siddiqie 2021년 3월 5일

0 개 추천

From my understanding you want to create a 3d contour. You can refer contour3.

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

제품

질문:

2021년 3월 1일

답변:

2021년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by