답변 있음 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...