질문


How to delete the columns that has NaN values?
Hi! I have this 5x5 matrix. Of them, only column 2 and 3 does not contain any NaN values. How can I write down a code that will...

거의 2년 전 | 답변 수: 1 | 0

1

답변

질문


How can I make these few lines a function?
Hi all! When I am plotting any graph (even for the individual subplot), I add these few lines everytime. set(gca,'color',[1 1...

거의 2년 전 | 답변 수: 3 | 0

3

답변

질문


How to calculate the rotation of this egg?
Hi all! Suppose I have this egg in figure1, standing still. But when it rotates a bit in figure 2, how can I calculate the rota...

거의 2년 전 | 답변 수: 3 | 0

3

답변

질문


Two easy questions (But I am confused)
Hi! Say I have a matrix S that is of 100x100 size. Now, I want to create an array just by taking the diagonal values of S. So...

거의 2년 전 | 답변 수: 2 | 0

2

답변

질문


How to manipulate xtick labels?
Hi! I am plotting a simple data set, say - plot(1:21,1:21); Now, obviously the x axis will show 1 to 21. But I want to chang...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


How to concatenate in a for loop to make a 3D matrix?
Dear altruists, I have this Saved_Temp{} that has 10x1 cells. Each of the cell is 1130x800 double. I want to create a 3D cell t...

대략 2년 전 | 답변 수: 1 | 1

1

답변

질문


How to plot a geographical surface temperature heat map?
Dear altruists, I have this Temp_Data.mat file (attached) that contains Latitude (917x345), Longitude (917x345), and sea surfac...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


Table to Array conversion using a for loop
Hi! Is there a way I can do this operation within a for loop? load 'temps-2021-11-16.mat' temps_2021_11_16 = table2array(data...

대략 2년 전 | 답변 수: 2 | 0

2

답변

질문


How to use str2num function to extract a specific year from the array?
Hi! I have a column matrix consists of string arrays. It's a huge time matrix and I am just showing a part of it. It contains d...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


Plot legend in a bar graph
Hi all, Can anyone please tell me how can I plot the average of the bar (values of Y) in the bar graph? It can be a legend, or...

대략 2년 전 | 답변 수: 2 | 0

2

답변

질문


How can I find out the indices of the largest 10 values within the matrix?
Hey guys, I am facing a problem and I am sensing the solution should be relatively easy. Suppose I have a 100x100 matrix wit...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


How can I locate a vortex center?
Hi all! Someone in the MATLAB community once asked similar kind of question but unfortuinately, it was never answered. So, I a...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


How to run this code in a for loop?
Hi all! I have a code that requires to go to the folder, calls mat files and then plot images. I want to run everything in a f...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to show bathymetry in a polar stereographic plot (ArcticMappingTools)?
Hi all! I am doing a particle relelase experiment in the arctic region and I have produced this trajectory paths of three parti...

2년 초과 전 | 답변 수: 0 | 0

0

답변

답변 있음
How to save figure frames as gif file?
Thanks! I actually solved it by using this script - for i = 1:Leng figure(1); filename = 'Day02_Path.gif'; set...

2년 초과 전 | 2

질문


How to save figure frames as gif file?
Hi all, I am having a problem while saving my figure frames as a gif file. I am using this code - for i = 1:Leng figure(...

2년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Selecting .tif files from a folder and copy them to another folder
Hi! I have these 34 days folders and each folder contains 3 images (.tif) files. I want to select all these .tif files and copy...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

2년 초과 전 | 답변 수: 1 | 1

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

2년 초과 전 | 답변 수: 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...

2년 초과 전 | 답변 수: 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...

2년 초과 전 | 답변 수: 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....

2년 초과 전 | 답변 수: 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...

2년 초과 전 | 답변 수: 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...

2년 초과 전 | 답변 수: 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...

2년 초과 전 | 답변 수: 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...

2년 초과 전 | 답변 수: 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 ...

2년 초과 전 | 답변 수: 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 ...

2년 초과 전 | 답변 수: 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 ...

2년 초과 전 | 답변 수: 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 ...

2년 초과 전 | 답변 수: 2 | 0

2

답변

더 보기