Community Profile

Li


48 total contributions since 2010

Contact

Contributions in
View by

Responded


Re: Colormap setting for subplots
Thank you very much for the reply. That is a good solution. I also found a m-file called 'freezeColors'.

6 years ago | 8567 views

Responded


Re: Colormap setting for subplots
Thank you very much for the reply. That is a good solution. I also found a m-file called 'freezeColors'.

6 years ago | 8567 views

Posted


Colormap setting for subplots
I am plotting two subplots of contours in one figure. Ideally, My goal is to set the colormap of the first one as 'colormap (jet...

6 years ago | 8567 views

Posted


textscan error: out of memory
I am trying to use textscan to read data from a huge text file. Below is the code: A = textscan(fid, '%f', 'delimiter', ' ', 'h...

6 years ago | 3862 views

Responded


Re: Lost decimal places
Thank you very much.

6 years ago | 2111 views

Responded


Re: Lost decimal places
Thank you very much for the reply. Yes, Rock is in integer type. But M2 is also populated by M1, which is not integer at all....

6 years ago | 2111 views

Posted


Lost decimal places
I used 'round' to get the index of a gridded data Z so that I can extract the value from Z. Weird thing is that the second and t...

6 years ago | 2111 views

Responded


Re: How to read grid data
Thank you very much. I will try it now.

6 years ago | 1442 views

Posted


How to read grid data
I have a huge txt file with a large 1*n (1 row and many many columns) matrix. It contains grid data of a spatial distribution. ...

6 years ago | 1442 views

Responded


Re: How to cover part of a contour line
I found the answer: set(gcf, 'renderer', 'painters');

6 years ago | 2002 views

Posted


How to cover part of a contour line
I am plotting a vertical distribution of water temperature, and want to add a thermocline at the temperature of 20 oC. Below is ...

6 years ago | 2002 views

Responded


Re: How to make data outside an irregular circle NaN?
Hi Faraz, Thank you for the reply. Yes, your understanding is correct. I tried your method. It works great when the situation...

6 years ago | 3095 views

Posted


How to make data outside an irregular circle NaN?
I am trying to plot a figure to show the spatial distribution of A in the North Sea. have a three-column data set [Longitude, La...

6 years ago | 3095 views

Responded


Re: How to plot shapefile onto a regular x-y plot
Thank you, Rob. That is great. I also found another way to do it: S1 = shaperead('usastatelo.shp'); plot([S1.X],[S1.Y], 'k:');...

6 years ago | 15433 views

Posted


How to plot shapefile onto a regular x-y plot
I plotted a US map using 'plot(lon, lat, 'k-'). Now I want to add the state boundaries. Unfortunately, the only state boundary d...

6 years ago | 15433 views

Posted


set the position of a subplot (plotted from mapping toolbox)
Have you run into this kind of situations? You want to set the position of a subplot, you thought it is as easy as: set(handle, ...

6 years ago | 1579 views

Responded


Re: How to average column values to the same minute?
Thank you all for the responses. I am glad to see the many methods.

6 years ago | 9987 views

Responded


Re: How to average column values to the same minute?
I found the solution: B = grpstats(A, A(:,1:5)); Thanks.

6 years ago | 9987 views

Responded


Re: How to average column values to the same minute?
Thanks, but I am afraid that it does not solve my problem. I have millions of data from 1900 all the way to 2010. The number of ...

6 years ago | 9987 views

Responded


Re: How to average column values to the same minute?
Thank you for the reply. Sorry for the confusion. The data is at 5-second interval. So I want to average them into the same min...

6 years ago | 9987 views

Posted


How to average column values to the same minute?
I have a large matrix like below: year month day hour min sec A_value 2010 5 20 9 30 05 396 2010 5 20 9 30 10 470 2010 5 20 9 3...

6 years ago | 9987 views

Responded


Re: How do I covert this text matrix to a numerical matrix?
Thank you very much, us. This is great!

6 years ago | 1484 views

Posted


How do I covert this text matrix to a numerical matrix?
I have a matrix like below but with hundreds of thousands of rows. It was read into matlab from a *.dat file. Now it only has on...

6 years ago | 1484 views

Posted


reading a bunch of data files with non-consecutive file names
Thank you for the alternative way of doing this. Li

6 years ago | 2015 views

Responded


Re: reading a bunch of data files with non-consecutive file names
That's awesome. Thank you so much.

6 years ago | 2015 views

Posted


reading a bunch of data files with non-consecutive file names
I have up to ten thousand txt data files with the file names: data_1, data_2, data_5, ... data_10,000. I am trying to use the ...

6 years ago | 2015 views

Responded


Re: How to change the grid on a map
This is perfect! Thank you so much, Rob.

6 years ago | 2801 views

Posted


How to change the grid on a map
The default meridian grid on my map is [-120, 90] (just two lines). How to change it to multiple lines such as [-130:5:-65]? T...

6 years ago | 2801 views

Posted


How to rotate a map (Mapping toolbox help)
I am new to the mapping toolbox, and want to rotate a map that I draw (see the link). http://i469.photobucket.com/albums/rr56/T...

6 years ago | 2291 views

Posted


How to remove the upper and lower border of a figure?
I am trying to stack 3 panels into one. So I need to remove (or make transparent) the panel borders between panel 1 & 2, 2&3. An...

6 years ago | 1187 views

Load more