How to turn x,y,counts data into a surface map

Hi all, I have a text file in format x,y,count format, as in an x position, y position and a count number. I wish to make a colourmap plot of the data such that it shows regions of high counts and low counts by colour. The surf function would be ideal, only my data is not in a counts matrix. How can I form the colourmap plot?
Kind regards, Sam

 채택된 답변

Star Strider
Star Strider 2018년 9월 5일

0 개 추천

Plot your data using the stem3 (link) function. You can easily see if your data are gridded, since the intervals between the stem lines will be regular. If so, use the reshape (link) function to create the matrices to use with surf.
If instead your data are scattered, you will likely need to use the griddata (link) or related interpolation functions to create the necessary matrices.

댓글 수: 2

Thank you for your help, I will give it a shot!
As always, my pleasure!

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

추가 답변 (1개)

Samuel White
Samuel White 2018년 9월 5일

0 개 추천

Thank you for your help, I will give it a shot!

카테고리

도움말 센터File Exchange에서 Get Started with Signal Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2018년 9월 5일

댓글:

2018년 9월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by