필터 지우기
필터 지우기

How to find bin mesh,edges and centres

조회 수: 4 (최근 30일)
Lakshit Chugh
Lakshit Chugh 2020년 5월 4일
편집: darova 2020년 5월 4일
i have given bin width and i am confused how should i find bin mesh bin edges and bin centres i have this code but its not working..
% Get the bin mesh. Put some extra space on the ends.
x_lim_left = 0;
x_lim_rght = +4;
%x_lim_left = -1;
%x_lim_rght = +12;
t0 = x_lim_left;
tm = x_lim_rght;
rng = tm-t0;
nbin = ceil(rng/h);
bins = t0:h:(nbin*h+t0); % <- the bin edges ...
bc = bins(1:end-1)+0.5*h; % <- the bin centers ...
  댓글 수: 3
Adam Danz
Adam Danz 2020년 5월 4일
"i have this code but its not working"
This doesn't give us any useful information. We can't run your code because we don't have vaules for at least one of the variables.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by