how to do pcolor plots?

3 ビュー (過去 30 日間)
Lilya
Lilya 2018 年 10 月 8 日
コメント済み: Lilya 2018 年 10 月 9 日
Hi all,
I've attached an example of the plot that I want to make it. it shows on x-axis = depth y-axis = time z-axis = temperature. the mother matrices have the same dimensions (251*28*10) I need also to extract the 5th column from all of it (251*5*10) the result previous matrix what I want to plot if with pcolor
any help will be appreciated :(
thanks
  3 件のコメント
jonas
jonas 2018 年 10 月 8 日
+1, you'll have to provide some data and tell us what that data represents. Normally you see data sets with scattered x-y-z-data, but here you've got some 3D-matrix, 10 layers deep.
Lilya
Lilya 2018 年 10 月 9 日
thank you so much for the responses.

サインインしてコメントする。

採用された回答

KSSV
KSSV 2018 年 10 月 9 日
A = rand(251,28,10) ; % some dummy data for demo
[m,n,p] = size(A) ;
% Extract 5th column from each matrix
iwant = zeros(m,1,p) ;
for i = 1:p
iwant(:,:,i) = A(:,5,i) ;
end
iwant = squeeze(iwant) ;
pcolor(iwant) ;
shading interp ;
colorbar
  1 件のコメント
Lilya
Lilya 2018 年 10 月 9 日
SUPER!! many many Thanks..

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by