Iowa MATLAB Code: clc clear all y = 1980:2015; x = 1:12; z = xlsread('Iowa Dataset', 'B1:M36'); yi = 1980:.1:2015; xi = 1:.1:12; [xi, yi] = meshgrid(xi, yi); zi = interp2(x, y, z, xi, yi, 'cubic'); mesh(xi, yi, zi) rotate3d on axis([1,12,1980,2015, 0, 500]) xlabel('Months(Jan-Dec)') ylabel('Years') zlabel('Average Monthly Precipitation(mm)') title('IOWA')
Iowa MATLAB Code: clc clear all y = 1980:2015; x = 1:12; z = xlsread('Iowa Dataset', 'B1:M36'); yi = 1980:.1:2015; xi = 1:.1:12; [xi, yi] = meshgrid(xi, yi); zi = interp2(x, y, z, xi, yi, 'cubic'); mesh(xi, yi, zi) rotate3d on axis([1,12,1980,2015, 0, 500]) xlabel('Months(Jan-Dec)') ylabel('Years') zlabel('Average Monthly Precipitation(mm)') title('IOWA')