Matlab中csv文件的直方图

时间:2019-11-30 19:42:59

标签: matlab matlab-figure

My expected image Matlab is giving this plot我确实需要csv文件格式的直方图中的帮助。当我在互联网上搜索直方图时,提示为历史功能。在下面的示例中,hist仅适用于x或y,但不适用于两者。我的预期图显示在图1红色图中。通过matlab代码,我得到如图2所示的蓝色绘图。

close all
data = csvread('mc_10000_better.csv',4); % Read the data
y = data(:,1) ; 
x = data(:,2) ; 
plot(y,x)
xlabel('Samples')
ylabel('Current')

0 个答案:

没有答案
相关问题