ibi is an array with 2 dimension and 400 elements. nBins = 32 This is the output: Now I want to render the same chart b"/>
I have a MATLAB function that has this line code:
hist(h.axesHistIBI,ibi(:,2),nBins); %plot
This line plots a histogram. Where h.axesHistIbi is:
ibi
is an array with 2 dimension and 400 elements. nBins = 32
This is the output:
Now I want to render the same chart but in a .NET web application. I have the save data (the same array, nBins
). How can I display the same values?
The definition of the 32 bins chosen by hist
can be obtained by saving the second output argument which contains the value at the center of each bin :
[~,centers] = hist(h.axesHistIBI,ibi(:,2),nBins);
You can then use your favorite .NET package to use the same bin centers to count the values in your .NET copy of ibi
and render the resulting histogram.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.