필터 지우기
필터 지우기

how to open csv and plot contour data

조회 수: 6 (최근 30일)
flemingtb
flemingtb 2018년 8월 16일
편집: Star Strider 2018년 8월 16일
I have a large .csv data file from a measurement sensor, i want to open the file and plot the data using Matlab. The data is in contour format, such that each row is a line scan of (X) points. At the start and end of each line (row) there are "junk" values of -999.999 where nothing was measured i'd like to filter these values out also.
I'm a newb to this so any help would be appreciated.

채택된 답변

Star Strider
Star Strider 2018년 8월 16일
편집: Star Strider 2018년 8월 16일
You can probably just use the contour (link) function.
Example
D = rand(100);
figure
contour(D)
To eliminate the ‘-999.999’ values, replace them with NaN values, since those will not be plotted (and likely will appear a white blank areas).
Example
D = rand(100);
D(5:10,10:20) = -999.999;
D(D == -999.999) = NaN;
figure
contour(D)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by