contour plot in matlab

조회 수: 2 (최근 30일)
Turbulence Analysis
Turbulence Analysis 2021년 7월 16일
댓글: Scott MacKenzie 2021년 7월 16일
I have Matrix B of size 8 x 72. this belongs to the data collected at difefrent axial heights (y) and radial(x) positions.
For e.g. in the matrix B , the coulmns from 1:12 pertains to y = 10 mm and x = 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 60 and so on for y = 20 , 30, 40 , 50 , 60 etc.,
Any idea how to plot this data using contour ()
  댓글 수: 2
Scott MacKenzie
Scott MacKenzie 2021년 7월 16일
It might help if you post the data.
Also, what about the rows? Are they just repeated measurements for the y and x conditions you identify along the columns?
Turbulence Analysis
Turbulence Analysis 2021년 7월 16일
Hi,
Here is the attachment of matrix B that contains the data
Yes, actually row again represents radial position of 3 mm with 8 divisions for e.g. coulmn 1 of row 1 to 8 represents 0, 0.43, 0.86, 1.29,1.7, 1,2. 1,2. 57, 3; coulmn 2 of row 1 to 8 represents 3 to 6 mm with 8 divisions...

댓글을 달려면 로그인하십시오.

답변 (2개)

KSSV
KSSV 2021년 7월 16일

KSSV
KSSV 2021년 7월 16일
B = B' ;
[r,c] = size(B);
lay = 10:10:60 ;
nlay = length(lay) ;
out = permute(reshape(B',[c,r/nlay,nlay]),[2,1,3]);
for i = 1:size(out,3)
figure(i)
contour(out(:,:,i))
end
  댓글 수: 2
Turbulence Analysis
Turbulence Analysis 2021년 7월 16일
Hi,
Actually, I am looking for final image something like this
Scott MacKenzie
Scott MacKenzie 2021년 7월 16일
I fiddled with your data a bit, but couldn't manage to create a figure like the one you posted. Was the posted figure created in MATLAB?

댓글을 달려면 로그인하십시오.

카테고리

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