Answered
How to make a square Histogram plot with the same range of values over x axis
You're using hist(tmpwint(idx),12); which specifies 12 equally spaced bins over the range of values in |tmpwint|. If y...

10 years ago | 0

Answered
For loop confusion!
I think you can skip the loops and use <http://www.mathworks.com/help/matlab/ref/diff.html |diff|>: an_r = diff(wint2_r,1,3...

10 years ago | 1

| accepted

Answered
How to have colourful contours superimposed on a grayscale (imshow) background?
Here's one way. If you turn the background matrix into RGB values, |imshow| won't try to attach the background image to the cur...

10 years ago | 0

| accepted

Answered
saving each minutes value as hourly average for individual dates.
If you can get your time into |datenum| format, you can use my <http://www.mathworks.com/matlabcentral/fileexchange/48361-downsa...

10 years ago | 0

Answered
calculate the number of pixel in a row and column
Carlos, it sounds to me like you're looking for a sum across rows or columns. Consider some pixel values in |X|: X = rand...

10 years ago | 0

Answered
How remove empty spaces
Those |s| values look like dates. Here are a couple of options: s = {[2005 1 26;2005 1 27;2005 1 28]}; % Get s as...

10 years ago | 1

| accepted

Answered
Determine if a point lies between two lines
You can use <http://www.mathworks.com/help/matlab/ref/inpolygon.html |inpolygon|>.

10 years ago | 1

| accepted

Answered
What function to plot lat, lon and a variable on a topographic map?
There's no need to call |plot| if you're using |geoshow|. Initialize a map with <http://www.mathworks.com/help/map/ref/worldmap...

10 years ago | 0

Answered
Colormap on the outside of a circle
Another option is to use <http://www.mathworks.com/matlabcentral/fileexchange/57020-cyclic-color-map/content/phasemap/html/phase...

10 years ago | 0

Answered
How to make circular colormap surf plot
I wrote a <http://www.mathworks.com/matlabcentral/fileexchange/57020-cyclic-color-map/content/phasemap/html/phasebar_documentati...

10 years ago | 0

Answered
Cyclic colormap for visualizing angles
I've written a <http://www.mathworks.com/matlabcentral/fileexchange/57020-cyclic-color-map |phasemap|> function for this, built ...

10 years ago | 1

| accepted

Answered
How to make object to move along a path?
Try a <http://www.mathworks.com/help/matlab/ref/comet.html |comet|> plot.

10 years ago | 0

Answered
imwarp.m and affine2d.m
Zack--those are functions in the Image Processing Toolbox, which requires a paid license.

10 years ago | 0

| accepted

Answered
How to fill coastline polygon
Two more options: 1. If you're trying to mask grid cells that are in land, use <http://www.mathworks.com/matlabcentral/filee...

10 years ago | 0

Answered
How do I linearly resample data?
A = [0,0;5,10;10,20]; B(:,1) = 1:10; B(:,2) = interp1(A(:,1),A(:,2),B(:,1),'linear') B = 1.00 ...

10 years ago | 0

Answered
count the number of 1 in each row
A_sum = [sum(A(:,1:5),2) sum(A(:,6:10),2)] A_sum = 3 4 4 2

10 years ago | 0

Answered
Find mean value of grid cells found within a coarser grid cell
I think this does what you want: % Load sample data and create a sample Z1: load sample_data Z1 = round(100*(cosd((...

10 years ago | 0

Answered
How do I add a title to each subplot?
For subplots I often prefer to use <http://www.mathworks.com/matlabcentral/fileexchange/42114-ntitle |ntitle|> rather than |titl...

10 years ago | 3

Submitted


filesize
Quickly get the size of any file.

10 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
making map in matlab
It looks like your data already conform to an evenly-spaced grid, even though they're columnated. That's good, because it means...

10 years ago | 0

| accepted

Answered
Hi everyone i'm new to matlab can anyone help me to creating map for the Red Sea ,Thank you all
You can use <http://www.mathworks.com/matlabcentral/fileexchange/50390-borders/content/borders/html/borders_documentation.html |...

10 years ago | 0

| accepted

Question


How many spaces do you indent?
Just out of curiosity, how many spaces do you use when indenting code? I recently changed my settings from the default 4 to 3, ...

10 years ago | 3 answers | 0

3

answers

Answered
Check if different points are contained in boundary of an xyz file.
You can use <http://www.mathworks.com/matlabcentral/fileexchange/56414-xyz-file-functions/content/xyz%20file%20operations/html/x...

10 years ago | 0

Answered
.shp and .xyz files mapped with geoshow
If your .xyz file was created with GMT there's a good chance you can use <http://www.mathworks.com/matlabcentral/fileexchange/56...

10 years ago | 0

| accepted

Answered
converting XYZ file to GRID
I wrote a function for this called <http://www.mathworks.com/matlabcentral/fileexchange/56414-xyz-file-functions/content/xyz%20f...

10 years ago | 0

Answered
How do I plot a contour map of non-uniform x,y,z data?
Hi James, This is a common problem with scattered data. What you have are some real measurements (plus noise) at a few loca...

10 years ago | 5

| accepted

Answered
How to route flow from upstream cells to downstream cells
Check out TopoToolbox, which is available on the File Exchange.

10 years ago | 0

Answered
How do I generate histogram in matlab R2012b?
Or you can use <http://www.mathworks.com/matlabcentral/fileexchange/47552-histf/content/histf_documentation/html/histf_documenta...

10 years ago | 0

Answered
How to convert netcdf file in .csv file
Sunny, Read the NetCDF data with <http://www.mathworks.com/help/matlab/ref/ncread.html |ncread|>, then write the csv file wi...

10 years ago | 0

Submitted


nanimresize
Use the imresize function without losing data at NaN boundaries.

10 years ago | 1 download |

5.0 / 5
Thumbnail

Load more