contour plot in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
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
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?
回答 (2 件)
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 件のコメント
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 Center および File Exchange で Contour Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!