How can you add a legend with custom location and a title to the legend box in MATLAB?
Alegend({'Data1','Data2'}, 'Location', 'northwest', 'Title', 'Legend Title')
Blgd = legend('Data1','Data2'); lgd.Title.String = 'Legend Title'; lgd.Location = 'northwest';
Clegend('Data1','Data2', 'Location', 'northwest'); title('Legend Title');
Dlegend('Data1','Data2', 'Title', 'Legend Title', 'Location', 'northwest')