Answered
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()|

8 years ago | 0

Answered
How can i change the x-axis fontsize when using imhist?
|imhist| gives you two handles, one for the colorstripe and one for the axis. You need to access the properties of the colorstri...

8 years ago | 1

| accepted

Answered
How do you save a figure with a trasparent background?
The most recent version of <https://se.mathworks.com/matlabcentral/fileexchange/23629-export-fig |export_fig|> includes a -trans...

8 years ago | 2

Answered
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...

8 years ago | 0

| accepted

Answered
how to save for loop data? So I want to save a and b as vectors but when I run the code it only saves the last value for both.
You are overwriting the variable each loop. add index (i) after the variables you want to save. e.g: for i = 2:1:244 ...

8 years ago | 0

Answered
How to loop through a set of variables Y1..Y100
Try this: figure;hold on for i=1:100; plot(eval(sprintf(['Y',num2str(i)]))); end For more info: <https...

8 years ago | 2

Answered
How do I separate data I have Input into Matlab
A simple solution would be to define the time-points between which you want to calculate the mean, and then use logical indexing...

8 years ago | 0

| accepted

Answered
How to delete an entire column if any 1 element in that column is above a threshold
A is your matrix. A(:,max(A)>1.2)=[];

8 years ago | 1

| accepted

Answered
How can divide this array into same group ?
A=DailyloadProfile(find(DailyloadProfile(:,97)==1),:); B=DailyloadProfile(find(DailyloadProfile(:,97)==0),:);

8 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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...

8 years ago | 0