extract data from one Matrix into three matices

조회 수: 1 (최근 30일)
Muhammad
Muhammad 2012년 5월 29일
I have created meshgrid [x,y] on which i have to contourf z.
But the problem is that i have 3 different types of data in z;
1- -999 (which shows no-data) 2- -9999 (which shows invalid-data) 3- valid data on which I would like to plot the actual contour.
I am trying to show all three types of data in z on the contour.
My strategy is to separate z into three matrices each containing one particular type of data among three mentioned types, keeping the size of all three matrices same as original z, so that i can contour all the three new matrices on same [x,y] grid.
Any Idea how to separate z into three matrices of same size as original ("No values" in the matrix can be treated as no vales)? I can use find(z=-999) to get the index of data type 1 in z but don't know how can i get the matrix from that index.
Best regards

답변 (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