MATLAB: Converting lat,lon column vectors to corresponding grid vector (lon*lat) coverting lat/lonunequal matrix multiplication Hello I have lat , lon column vectors lon=35*1 lat=33*1 Now i want to convert it into single column vector that will have corresponding grid size(1155*1) , i.e 35*33 =1155 Best Answer lat_lon = lat*lon';sz = size(lat_lon);lat_lon = reshape(lat_lon, [sz(1)*sz(2), 1]);size(lat_lon); %(35*33)x1This gives you a vector of size (35*33)x1 Related SolutionsMATLAB: I am trying to use pcolor for a graph and matrixes all have to be the same. How to reshape it Let lon be your 3600*1, and lat be 1*2683 arrays. And the data be H 3600*2683.pcolor(lon,lat,H') ;shading interpshould work. MATLAB: How to find unique elements from every row within matrix? y0 = sort(y,2);out = y(sum([ones(size(y,1),1),diff(y0,[],2)~=0],2) >= 9,:); Related QuestionHow to convert [-90 90] range of elevation angel in imgradient3 to [0 , 180]Plotting lat, lon, altitude, variableExtract Lon/lat fron Raster data
Best Answer