MATLAB Answers

Plot median values in a bin (binned plot)

조회 수: 2(최근 30일)
Arun Kumar Singh
Arun Kumar Singh 2021년 8월 29일
댓글: Arun Kumar Singh 2021년 9월 1일
fid = fopen('B0B1_Daytime.txt');
datacell =textscan(fid,'%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f', 'collectoutput', true);
x = (M(:,2));
y = (M(:,1));
z = (M(:,9));
This is the code that i have written here for the plot of x,y and z as surface plot. as it is attached here.
I want this plot with binned value and each bin should has median values in a bin.
  댓글 수: 5
darova 2021년 8월 29일
Well, it's a problem

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

채택된 답변

Rik 2021년 8월 29일

You can try gridbin.

I haven't used it myself, but it seems to do what you need.

  댓글 수: 3
Arun Kumar Singh
Arun Kumar Singh 2021년 9월 1일
thank you it worked

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

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by