diff --git a/0_Integration/superlab_demo.slx b/0_Integration/superlab_demo.slx index 6fc6c2e..95ead53 100644 Binary files a/0_Integration/superlab_demo.slx and b/0_Integration/superlab_demo.slx differ diff --git a/B_ChannelCoding/B1.slx b/B_ChannelCoding/B1.slx index 73cdf3b..425345b 100644 Binary files a/B_ChannelCoding/B1.slx and b/B_ChannelCoding/B1.slx differ diff --git a/B_ChannelCoding/B2.slx b/B_ChannelCoding/B2.slx index 391c5ee..345aa50 100644 Binary files a/B_ChannelCoding/B2.slx and b/B_ChannelCoding/B2.slx differ diff --git a/C_BaseBand/C1.slx b/C_BaseBand/C1.slx index ede6436..88aea4f 100644 Binary files a/C_BaseBand/C1.slx and b/C_BaseBand/C1.slx differ diff --git a/C_BaseBand/C2.slx b/C_BaseBand/C2.slx index bd8b22d..04dd44b 100644 Binary files a/C_BaseBand/C2.slx and b/C_BaseBand/C2.slx differ diff --git a/C_BaseBand/show_histogram.m b/C_BaseBand/show_histogram.m new file mode 100644 index 0000000..e2c9ba1 --- /dev/null +++ b/C_BaseBand/show_histogram.m @@ -0,0 +1,28 @@ +function show_histogram(histogram,Vmin,Vmax) +% show_histogram((histogram,Vmin,Vmax) plots in a figure +% an histogram computed by the Signal Processing Blockset 'Histogram' +% block and exported to the Matlab Workspace through a 'Signal to +% Workspace' block. The 'Signal to Workspace' block has to be +% configured to output a one-dimensional array. +% +% histogram is the name of the variable containing the histogram +% as a one-dimensional array +% Vmin, Vmax are, respectively, the minimal input value and +% the maximal input value, as specified in the dialog box of the +% 'Histogram' block. + +% compatible with Matlab R2012b + +if ~isnumeric(histogram) + error('histogram is expected to be an array of numbers !'); +end +if ndims(histogram)>2 || (size(histogram,1)~=1 && size(histogram,2)~=1) + error('histogram is expected to be a one-dimensional array !'); +end + +Nbins=length(histogram); +delta=(Vmax-Vmin)/Nbins; +hx = Vmin+delta/2:delta:Vmax; +hy = histogram; + +bar(hx,hy); \ No newline at end of file