질문


Interpolating NaN values within a matrix
Hi all! I have this 71x328 size matrix (It's actually a satellite swath data). Within it, the row 35, 36, and 37 are entirely N...

10달 전 | 답변 수: 1 | 0

1

답변

질문


Integral of a matrix (x = integration(v)dt) to find x in each time step - how to get it?
Dear altruists, I have these (5x1 size) time steps - t1 = 5.000; t2 = 5.005; t3 = 5.015; t4 = 5.020; t5 = 5.025; For each...

10달 전 | 답변 수: 1 | 0

1

답변

질문


Dealing with strings and numbers in a for loop.
Hi guys, I have April2003 = 55; April2004 = 279; April2005 = 311; . . . . April20020 = 119 How can I run a for loop t...

10달 전 | 답변 수: 1 | 0

1

답변

질문


How to assign different files in the target folders?
Hi all! Suppose, I have several files in a folder named like this: Please note that 20150408 means 2015-April-08. Now I wan...

11달 전 | 답변 수: 1 | 0

1

답변

질문


How can I average the vectors within the grid cell?
Hi altruists, Suppose, I generated this simple vetor field using these few lines of codes: [X,Y] = meshgrid(0:6,0:6); U = 0....

12달 전 | 답변 수: 1 | 0

1

답변

질문


How to select specific files from all the files in a folder?
Hi all, As you can see I have a lot of files in this folder, but I want only those files that contains '_020_' in it's name, an...

12달 전 | 답변 수: 2 | 0

2

답변

질문


MATLAB is stuck at full screen!! - a weird problem
Hi all, I am facing a weird issue. I am curently working with the virtual desktop (high performance computer) of my university...

약 1년 전 | 답변 수: 2 | 0

2

답변

질문


How to generate random coordinates and store the values?
Hi all, Suppose, I want to randomly create 5 different coordinates such as p(x,y) = (1,3), (-5,2), (8,1), (-4,4), and (6,3). A...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Algorithm to calculate trajectories from a vector field
Dear altruists, Suppose, I have a two-dimensional vector field, i.e., for each point (x, y) I have a vector (u, v), whereas u a...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I show the scale of my arrow in a quiver plot?
Hi! If I want to display the scale of my arrows on a quiver plot I got from my u and v velocities, how can I set the scale bar ...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I use the "diff" function instead of a for loop?
Dear altruists, How can I get the similar result from this few lines of code using the MATLAB built in "diff" function instead ...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How to write the code that takes input as fahrenheit and display Celsius?
Hi all, I want to write down the code that takes an input and covert it to the desired answer. for example, f = input('Enter ...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How to find out standard deviation of a matrix when there is a lot of NaN values?
Hi altruists, I have a 71*294 matrix that contains a lot of NaN values. In fact, the first 7 rows, the last 7 rows, and row ...

약 1년 전 | 답변 수: 2 | 0

2

답변

질문


Quiver plot - how to use in this case?
Hi guys, I have my latitude matrix (71x259), longitude matrix (71x259), and the geostrophic current matrices (u, and v componen...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I make this simple code a for loop?
Hi, how can I represent this simple codes in a for loop? Also, can you please suggest me when I see a similar pattern in my code...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I plot my velocity data in a latitude longitude grid?
Hi altruists, I have these three matrices: lat (71x294), lon (71x294), and velocity(71x294). I want to plot the velocity vecto...

약 1년 전 | 답변 수: 0 | 1

0

답변

질문


How can I insert NaN value in a matrix?
Suppose I have this matrix a = [1:6; 7:12; 13:18; 19:24] I want to fill the values for all the even number with NaN. How can I...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I increase the size of the color bar values?
Hi guys, can you kindly tell me how can I increase the values of these numbers showed in my color bar?

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How to find pythagorean triangle's hypotenuse in a matrix?
Hey guys, I have two 4x4 matrices a and b. I want a third c matrix of 4x4 size where all the values will be c = sqrt(a.^2+b.^2)...

약 1년 전 | 답변 수: 3 | 0

3

답변

질문


How to create a customized meshgrid?
Hi all, Can anyone kindly tell me how can I create a "71x9866 double" size meshgrid where my x axis will have the range of 34...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Create a matrix using rand function with a value range
Hi all, how can I create a 50x50 matrix using Random (rand) function while the condition is all the values of the matrix will be...

약 1년 전 | 답변 수: 1 | 0

1

답변