1 function plot_bounds(lon,lat,U,L)
3 % plot_bounds(lon,lat,U,L)
6 % Plots the bounds to apply to SVM
9 % lon,lat longitude and latitude coordinates
13 % Developed in Matlab 9.2.0.556344 (R2017a) on MACINTOSH.
14 % Angel Farguell (angel.farguell@gmail.com), 2019-06-17
15 %-------------------------------------------------------------------------
18 uu(uu==max(uu(:))) = nan;
19 nu = sum(sum(~isnan(uu)));
21 ll(ll==min(ll(:))) = nan;
22 nl = sum(sum(~isnan(ll)));
26 C = repmat([1,0,0],nu,1);
27 hu = scatter3(lon(~isnan(uu)), lat(~isnan(uu)), uu(~isnan(uu)), S, C, 'filled');
29 set(hu, 'MarkerEdgeAlpha', alpha, 'MarkerFaceAlpha', alpha)
32 C = repmat([0.2,0.7,0.2],nl,1);
33 hl = scatter3(lon(~isnan(ll)), lat(~isnan(ll)), ll(~isnan(ll)), S, C, 'filled');
35 set(hl, 'MarkerEdgeAlpha', alpha, 'MarkerFaceAlpha', alpha)