Code covered by the BSD License  

Highlights from
Machine Learning with MATLAB

image thumbnail

Machine Learning with MATLAB

by

 

05 Aug 2013 (Updated )

These are the supporting MATLAB files for the MathWorks webinar of the same name.

plotBondClusters( corp, idx, title_str)
function plotBondClusters( corp, idx, title_str)
%plotBondClusters Wrapper function to plot the bond clusters utilizing
%bubbleplot

% Copyright 2013 The MathWorks, Inc.

figure
bubbleplot(double(corp.Rating), corp.Coupon, corp.YTM, [], idx);
set(gca,'XTick',double(unique(corp.Rating)))
set(gca,'XTickLabel',cellstr(unique(corp.Rating)))
ylabel('Coupon R')
zlabel('YTM')
title(title_str)
grid on

end

Contact us