回答済み Change the coordinates of an image
dx=-300;
dy=-200;
imshow(I,'Xdata',[1 size(I,1)]+dx,'Ydata',[1 size(I,2)]+dy)
alternatively you can use |surf()|
回答済み How to index in for cycle
lat(i),lon(i)]=Intersection_elipsoid()
Consider preallocating your variables to avoid slow loops, by e.g. typing 'lat=n...
回答済み Splitting an image into smaller regions
Use mat2cell()
Example:
%Load 256x256 grayscale image and divide in 4x4 equally sized subimages
n=4;
I = imread('c...
約8年 前 | 0
回答済み How to plot one column in a martix
The gridded data is stored in the surface plot's 'ZData' property.
h=surf(lat,lon,elevation)
el=get(h,'ZData')
plot(lat,el...
約8年 前 | 0
| 採用済み
回答済み extract non-zeros block from matrice
Not sure exactly what you want to do. The following creates a vector B containing all non-zeros of A
B=A(A~=0)
Do you want...