Question

axesm ('eqaazim' + longitude ticket label to not be on the line of the axes?

<</matlabcentral/answers/uploaded_files/107867/Capture.JPG>> Hey, I am using c=axesm('eqaazim','MapLatLimit',[30.1 90],'GL...

2 years ago | 0 answers | 0

Question

How to map just USA border (Conus) and not the states with the usamap or worldmap?

Hi, My problem is usamap plots states as well. Or cut part of the southern states when I just plotted the orders. Worldmap, p...

3 years ago | 1 answer | 0

Question

extract part of a string with an extension

Hi, I have a long string and I want to just exctract the names that have "hdf" as an extension: I want just to get "MOD11C1....

5 years ago | 2 answers | 0

Question

How do I automatically download files from http server? urlread urlwrite

Hi, I know urlread and urlwrite to download files form server but my problem is how I can specify parts of a string resulting...

5 years ago | 1 answer | 0

Answered

Combining files and mapping them using x and y coordinates

Hi if you already figured it out, would you please help me? I have the exact same question! THanks

Combining files and mapping them using x and y coordinates

Hi if you already figured it out, would you please help me? I have the exact same question! THanks

5 years ago | 0

Question

I have problem with detevec.

Hi, I want to read a='7/17/10 20:36' from excel to MATLAB. b=datevec(a,'mm/dd/yy HH:MM'); I did that but I ended up ...

7 years ago | 1 answer | 0

Question

How to change the x ticket lables in a plot?

Hi, I have : x=1:12 %the index of months y=x.^2; plot(x,y) No I want to change the position of x labels from below th...

7 years ago | 2 answers | 0

Question

sorting vector with duplicated values in it.

Hey All, I have a vector that I want to sort but remove the duplicated values. I know I can do that with "unique"but I need t...

7 years ago | 1 answer | 0

Question

change the color of multi lines in a graph

I have a function in a loop in which something plots and hold on the previous ones. After the loop I have a figure with 6 line (...

7 years ago | 1 answer | 0

Question

How can I find and put zero for missinf data in a time series?

Hi all I have a 30 years of hourly data. Some of the data are missing. It means that I do not have data for example for 1 PM ...

7 years ago | 1 answer | 0

Question

question about fun defining

I want to create this fun as below: R=rand(100); diff=rand(25); sum_r1=rand(25);; fun =@(x) x(:)+x(:).*diff(:)...

7 years ago | 0 answers | 0

Question

im2col error in size

Hi this is my code: R=rand(162,72); r=im2col(R,[2 2],'sliding'); R1=col2im(r,[2 2],size(R),'sliding'); the size of ...

7 years ago | 2 answers | 1

Question

up sampling a matrix with non-zero elements.

Hello I have a matrix A(100 by 100) and I want to upsample the matrix (not by zero arrays) in a way the each cell is replicat...

7 years ago | 1 answer | 0

Question

std of a logical matrix

I have a 2d matrix (100 by 4 )and I want to calculate the std for each 100 by 1 non-zero vector of this matrix,. But when i wrot...

7 years ago | 1 answer | 0

Question

Standard deviation of a 3-d matrix

hi I have a matrix with size(y)=(200*1*4). I want to calculate the std for each (200*1) vector separately. When I used "std(y(...

7 years ago | 1 answer | 0

Question

how can I calculate the Fourier Transform of an image for different angles?

Hi I have an image and I want to plot the Fourier coefficient for different angles of an Image? I know the command is fft2 b...

7 years ago | 1 answer | 0

Answered

get rid of NaNs

actually it was an simple example. But I want to remove rows with all NaNa and then remove the same rows from another matrix acc...

get rid of NaNs

actually it was an simple example. But I want to remove rows with all NaNa and then remove the same rows from another matrix acc...

7 years ago | 0

Question

get rid of NaNs

I have two matrix A and B I want to remove all row and columns with all NaNa in matrix A and accordingly delete the same row an...

7 years ago | 3 answers | 0

Question

create a matrix!

Hello I have row=[1 2]; col=[10 11 13 ]; I want to have b=[10 11 13; 10 11 13] How can i do that? ...

7 years ago | 2 answers | 0

Question

sort a vecrtor

I have a vector: a = [1 5 7 2 6 8 9 0 2] and b=[5 8 1 0 3 6 9 8 2] (both have the same size) I want to sort vector 'a' and acco...

7 years ago | 1 answer | 0

Question

delete zeros rows and columns

I try this code to delete all row and column with all zero values in them. It simply works for deleting the columns with all zer...

7 years ago | 2 answers | 4

Question

seleting some part of matrix

Q = randi(456,10,15); row=[1 2 5 4 3 6]; column=[5 7 3 4 8 14]; p = Q(row,column); P = zeros(size(Q)); P(1:nume...

7 years ago | 1 answer | 0

Question

put a some small matrix in a big matris

I have a problem. I have a big matrix that in each loop I search for some data that satisfy some conditions. The result of "find...

7 years ago | 1 answer | 0

Question

put smaller matrix in bigger matrix

Hello I have row=[1 2 5 4 3 6] and column=[5 7 3 4 8 14]. I want to select and put each Q(row,column) in a new data. for exampl...

7 years ago | 1 answer | 0

Question

find x subjected to some limit.

I want to to find a<=x<b and c<=y<d in a matrix. But simply I can't. I would appreciate if you help me.

7 years ago | 1 answer | 0

Answered

delete zeros rows and columns

data( all( ~any( data), 2 ), : ) = []; % removes all rows with all zero data( :, all( ~any( data ), 1 ) ) = []; % and col...

delete zeros rows and columns

data( all( ~any( data), 2 ), : ) = []; % removes all rows with all zero data( :, all( ~any( data ), 1 ) ) = []; % and col...

7 years ago | 1

Question

select a band of a matrix

Hello I want to select a band of a matrix with slop (S) and save them in another matrix. a = [ 1 2 3 4 ...

7 years ago | 2 answers | 0

Question

How can I convert all NaNs to Zero in the image?

Converting all NaNs to zero in an image is my problem.

7 years ago | 1 answer | 0

Question

delete NaN rows and columns but

I want to remove the NaN column and row in my image so the size will be decreased, but since I used the "find' command it Matlab...

7 years ago | 2 answers | 0