Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I make special type of contour plot ?

조회 수: 2 (최근 30일)
Md. Golam Mostafa
Md. Golam Mostafa 2015년 9월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
I have an Excel worksheet with data organized in three columns of same length.
I can make a contour plot using SigmaPlot putting first column in x-axis, second column in y-axis and third column as intensity in grayscale.
Can I make the similar plot using MATLAB? How can I make it?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 28일
Yes, When you read in the data column, convert it from string to serial date number if necessary (if it shows up as numeric in MATLAB then you need to add datenum('1900-1-1')-1 to it to do the date conversion.)
Once you have a numeric value for the three columns, you can use griddata() to build an array of rectangular data that you can then contour() -- or more likely, that you can imagesc()
  댓글 수: 1
Mohammed Al-Mosawi
Mohammed Al-Mosawi 2016년 6월 11일
I have the same problem, can you please elaborate. If a = number of columns and b = number of rows, c = intensity. How can I create an image of dimensions a by b and of each pixel to have intensity c

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by