subplot(7,1,k); ax1=axes; imagesc(ax1,Xv,Yv,M); set(gca,'YDir','normal'); h=colorbar; ylabel(h,'TOTAL Sound Pressure Level (dB)'); clear title title(strcat('SPL Broadband\_', listofpercentis(k))); xlabel('LONGITUDE'); ylabel('LATITUDE'); axis tight; clear title ax2=axes; contourf(ax2,lon_km,lat_km,elevation', [0 0]); linkaxes([ax1,ax2]); ax2.Visible = 'off'; ax2.XTick = []; ax2.YTick = []; set([ax1,ax2],'Position',[.17 .11 .685 .815]); ax2.Visible = 'on'; ax2.Visible = 'off'; cb1 = colorbar(ax1,'Position',[.865 .112 .04 .815]); ylabel(cb1, 'SPL (dB)','FontSize',12); %AUTOMATIC WAY % xlim([ax1,ax2],[xmin xmax]); % ylim([ax1,ax2],[ymin ymax]); axes(ax1); axis equal; axes(ax2); axis equal; hold on; %plot(km2deg(Sx),km2deg(Sy), '*k') %plot(-9,37.96, 'Ok'); %source=text(deg2km(-8.99),deg2km(37.94),'source','FontSize',12) portugal=text(deg2km(-8.65),deg2km(37.86),'Portugal','FontSize',20); set(portugal,'Rotation',90); sines=text(deg2km(-8.869),deg2km(37.96),'*Sines','FontSize',14); caxis(ax1,[0 200]);
You're aren't using subplot correctly. For each plot you need a separate call to subplot with the index (in your case, row) where you want the plot to appear:
subplot(7,1,1); plot ... % something in the 1st row subplot(7,1,2); plot ... % something in the 2nd row subplot(7,1,3); plot ... % something in the 3rd row ...
Type doc subplot in the MATLAB's command window for more explanation and examples
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.