How can i plot a surface with data from a txt file?
이전 댓글 표시
I have a txt file with a series of x, y and z values, separeted by spaces, and i need to import this file and plot a surface. how can i do that?
답변 (1개)
Star Strider
2017년 2월 13일
0 개 추천
Without seeing the file, I can only guess.
Importing the file is relatively easy, using either load, dlmread, textscan, or a number of other functions. It depends how it is formatted.
Plotting a surface without knowing if the x- and y-values are gridded, that is repeat in a specific pattern, leaves too much to the imagination to provide any specific solution. You may need to use griddedInterpolant or scatteredInterpolant to create the surface.
I leave you to fill in the necessary details.
Have fun!
댓글 수: 3
Martim Mandarino Alves
2017년 2월 15일
Martim Mandarino Alves
2017년 2월 15일
Star Strider
2017년 2월 15일
?
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

