필터 지우기
필터 지우기

How to plot contour at land area only?

조회 수: 2 (최근 30일)
Amra Rajuli
Amra Rajuli 2018년 4월 24일
편집: Etsuo Maeda 2018년 4월 27일
I want to show the contour plot only at the land area. I only could plot the boundary line between land and sea and Land+Sea plot (figure A). Is there any simple method that I could, so we can do subtraction between D plot and E plot (figure B)?
D=contour(x,y,zmax')% plot contour both at sea and land
[E,p3]=contour(x,y,-dem',[0 0],'r')% boundary between land and sea

답변 (1개)

Etsuo Maeda
Etsuo Maeda 2018년 4월 27일
편집: Etsuo Maeda 2018년 4월 27일
I m not sure what you want to do. But following link will help you to understand the "Relational Operators"
https://jp.mathworks.com/help/matlab/matlab_prog/array-comparison-with-relational-operators.html?lang=en

카테고리

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