Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Please help me to fix this code. I have 3 sets of data, radius,CA, CPTOT, iam trying to plot contours of CPTOT w.r.t radius and CA along x-axis and y-axis. I have attached txt file for reading y and z values.

3 ビュー (過去 30 日間)
Rizwana
Rizwana 2014 年 1 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
load new.txt;
x= linspace(24.94,27.30,264);
>> xmin = min(x(:));
>> xmax = max(x(:));
>> y = a(:,1);
>> z = a(:,2);
>> ymin = min(y(:));
>> ymax = max(y(:));
zmin = min(z(:))
zmax = max(z(:));
ini = 24.94;
last = 27.3;
samples = 264;
>> k=(last-ini)/(samples-1);
[xi,yi]=meshgrid(0:k:xmax,0:k:ymax);
>> zi=griddata(x,y,z,xi,yi);
contour(zi)
  2 件のコメント
Walter Roberson
Walter Roberson 2014 年 1 月 22 日
What difficulty are you having? Are you getting an error message? Are ou getting a different output than you expect?
Rizwana
Rizwana 2014 年 1 月 22 日
Iam not getting contours on my figure window

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by