Question


How to use find when some of the searches will not return a result?
I have some grid data stored in Excel file and I am trying to reformat them into grid data. Below is my code: A = xlsread('...

8 years ago | 2 answers | 0

2

answers

Question


How to remove identical matrix
I have about 2000 matrices. They have the same number of columns but different number of rows. Some of these matrices are duplic...

8 years ago | 1 answer | 0

1

answer

Question


Is there a way to extract map data out of the Matlab mapping toolbox?
I am very uncomfortable with the way matlab mapping setting up everything. I wonder if there is a way I can extract the longitud...

8 years ago | 1 answer | 0

1

answer

Question


How to set usamap projection to mercator?
I am having trouble setting the projection to mercator for the below map: ax = usamap([10 90], [-180 -50] ); states = ge...

8 years ago | 1 answer | 0

1

answer

Question


How do I set the subplot position without worrying about the outside legends?
I have two subplots: han1 = subplot(1,2,1) and han2 = subplot(1,2,2). han1 has a legend with 4 rows, han2 has a legend with 2 ro...

9 years ago | 1 answer | 0

1

answer

Question


How do I find the standard deviation of my linear regression?
I am using fitlm to do a very simple two-variable linear regression: md1 = fitlm(x,y); Here are my results: md1 = ...

9 years ago | 1 answer | 0

1

answer

Question


Differences between stepwisefit and robustfit?
I am trying to do a linear regression between y (100x1) against X (100x5 variable 1,2,3,4,and 5). What is the best linear re...

9 years ago | 0 answers | 0

0

answers

Question


How to get p-value, RMSE out of fitlm?
I use mdl = fitlm(X,y,'robust','on') to get the statistics of my regression, and I know how to get the Rsquare: R2 = md1.Rsquar...

9 years ago | 1 answer | 0

1

answer

Question


How to find the value in a column that's most close to a specific number?
Without writing a loop, is there an easy way to find out the number in a column that's most close to a specific number? For e...

9 years ago | 1 answer | 0

1

answer

Question


mean value of a group of data with NaNs
I have a matrix A with the dimension of 12x360x180. It stores 12 values at each grid of the 360x180. Now I want to calculate the...

9 years ago | 3 answers | 0

3

answers

Question


How do I convert the dimesion of a matrix from 1 m n to m n?
I have a matrix with the dimension of 1x360x180. How do I convert it to a new matrix with the dimension of 360x180? Thank yo...

9 years ago | 3 answers | 0

3

answers

Question


How to pass values selected from a GUI interface to another *.m script
I am trying to create a GUI interface like the below: a popup menu to select the depth, a slide bar to select the lower end of t...

9 years ago | 1 answer | 0

1

answer

Question


How to generate a pesonalized colormap?
How do I generate a colormap with 31 different shades of color? It's starting, middle, and ending rows should be as the belo...

9 years ago | 2 answers | 0

2

answers

Question


How to hide one of the figure plot borders?
I have three subplots in a figure, and I want to overlap portions of them to save space. My question is how do I hide one of the...

10 years ago | 2 answers | 0

2

answers

Question


How to enable Matlab maps to show longitude and latitude labels?
Below is my code for drawing a map. The problem is that it does not show the longitude and latitude labels,e.g., 20oE, 30oE, etc...

10 years ago | 1 answer | 0

1

answer

Question


How to write a matrix into Geotiff file?
The instruction provided by Mathworks says this "geotiffwrite(filename,A,R) writes a georeferenced image or data grid, A, spatia...

10 years ago | 1 answer | 0

1

answer

Question


How to grid data based on distance, rather than longitude and latitude?
If I want to grid my data into longitude and latitude grids over the whole planet, I can simply do this: [X, Y] = meshg...

10 years ago | 1 answer | 0

1

answer

Question


How to split a contourf plot into two sections with different zooms
For example, if I am plotting a vertical section of water temperature from surface to 5000 meters, the portion of the plot from ...

10 years ago | 1 answer | 1

1

answer

Question


How to fill/patch a series of circular data separated by NaN?
The circle data are like this: 1,2 2,3, 3,4, 1,2 NaN, NaN 5,7 6,9 5,7 NaN, NaN I have a ton of s...

10 years ago | 0 answers | 0

0

answers

Question


How to shift a map, so that the Pacific Ocean will be in the center?
I'm using the below commands to plot a global map. S1 = shaperead('map/ne_110m_land.shp'); mapshow(S1); How do I shift...

10 years ago | 1 answer | 0

1

answer

Question


How do I force all contents in the cell array out of the command "xlsread" to be strings?
So if I use the below command to read an Excel file, [A, B, C] = xlsread('abc.xlsx'); C should be a cell array storing bo...

10 years ago | 1 answer | 0

1

answer

Answered
how to properly transfer plotted figure to a MS Word file?
Thanks for the suggestions! I tried to save it as "emf" files. This seems to help a little bit, although the resolution is no...

10 years ago | 0

Question


how to properly transfer plotted figure to a MS Word file?
I have always been using copy and paste and tried all the "copy options". Unfortunately, the figure in the Word file is usually ...

10 years ago | 2 answers | 0

2

answers

Answered
Mapping toolbox: how do I move the longitude labels from the equator to the bottom of the map (-90 Latitude)
I got it figured out myself. setm(handle, 'MlabelParallel', 'south');

11 years ago | 4

| accepted

Question


Mapping toolbox: how do I move the longitude labels from the equator to the bottom of the map (-90 Latitude)
The default location of the longitude labels are at the Equator. How do I move it to the bottom of the map (close to 90 degrees ...

11 years ago | 1 answer | 1

1

answer

Question


How to define the boundary of a countour
I am using this line of code to plot my contour of sea surface temperature, it is a rectangular box. [C1, h1] = contourf (X, Y...

11 years ago | 2 answers | 0

2

answers

Question


How do I read text paragraphs from Excel files?
I normally read text strings from Excel files by first converting the file into a CSV or TXT, and then use fopen, textscan, and ...

11 years ago | 0 answers | 0

0

answers

Question


How do I smooth out a surface distribution plot?
Looks like my data has some outliers that should be removed. Instead of doing that manually, is there a way I can let Matlab...

11 years ago | 1 answer | 0

1

answer

Question


colorbar ticklabel location set up
The default setting put the ticklabel to the left side the colorbar. How do I set it up so that it will appear to the right side...

11 years ago | 2 answers | 0

2

answers

Question


How do I apply customized colormap to other plots?
I know how to set up colormap with the GUI interface by going to the "edit"=>"colormap". However, I have a total of about 20...

11 years ago | 1 answer | 0

1

answer

Load more