Submitted


cbarrow: pointy ends for colorbars
Make pointed ends for colorbars

9 years ago | 15 downloads |

4.9 / 5
Thumbnail

Answered
How can I convert .out into .mat?
I don't think .out is a format. I think it's just an extension. Can you open the .out files in a simple text editor like Notep...

9 years ago | 0

Answered
Does NaN used in confusion matrix affects results?
Here's one way: C = nansum([A; B]) C = 5 7 7

9 years ago | 0

| accepted

Answered
downsampling an image without changing image content
If you have the Image Processing toolbox, check out <http://www.mathworks.com/help/images/ref/imresize.html |imresize|>. Here's...

9 years ago | 0

Answered
How can I remove the seasonal signals from the monthly sea level data?
Another way to do it is to remove the means for each month. That is, figure out the average sea level for January and subtract ...

9 years ago | 3

| accepted

Answered
How can i make this loop start at theta= zero and evaluate the same equations for values increasing by two (e.i at 0,2,4,6 etc.)
Here's how you'd get |ax| and |ay|. First we define an array of values |theta| which go from 0 to 360 in steps of 2. Then we s...

9 years ago | 1

| accepted

Answered
How to slice through a 3d surface
Are you looking for a <http://www.mathworks.com/help/matlab/ref/slice.html |slice|> plot?

9 years ago | 0

Answered
how to save each loop data
There are several ways to do this. One way is to make a counter, and increment that counter each time through the loop: p...

9 years ago | 2

Answered
Plot envelope of a grassy plot
Do you have the Signal Processing toolbox? If so, the <http://www.mathworks.com/help/signal/ref/envelope.html |envelope|> funct...

9 years ago | 0

Answered
How do I convert irregular lat/lon data from excel to a regular MATLAB grid for viewing as a contour plot?
Try using <http://www.mathworks.com/matlabcentral/fileexchange/8998-surface-fitting-using-gridfit |gridfit|>. However, a no...

9 years ago | 0

Answered
how to compute min for image with black border?
What about min(img(img~=0)) That is, the minimum value of |img| values that are not zero.

9 years ago | 1

| accepted

Answered
How do I fill a rectangle (or circle) in a matrix?
If you have the Image Processing toolbox, K= [1 1 1 1 1 1 1 1 1 1 1 1 ...

9 years ago | 0

Answered
How do I fill a rectangle (or circle) in a matrix?
Here's one way to fill the space between the top row of 10s and the bottom row of 10s: K= [1 1 1 1 1 ...

9 years ago | 1

| accepted

Answered
Assignment and accessing using indices
Try this: A = zeros(4); lin = sub2ind([4 4],2:3,2:3); A(lin) = 1;

9 years ago | 0

Answered
How do I make a grey matrix, that contains a filled circle?
If you have the Image Processing toolbox you can use <http://www.mathworks.com/help/images/ref/strel-class.html |strel|>: ...

9 years ago | 0

Answered
Eliminate a row where a column has repeated values
You can use the indices returned by |unique| to get the rows corresponding to unique values in column 18: M = randi(5,[3 2...

9 years ago | 0

Answered
How can I plot boundary of India?
Another option is to use <http://www.mathworks.com/matlabcentral/fileexchange/50390-borders/content/borders/html/borders_documen...

9 years ago | 0

Answered
how to plot india map with international boundary
You can use <http://www.mathworks.com/matlabcentral/fileexchange/50390-borders/content/borders/html/borders_documentation.html |...

9 years ago | 0

Answered
Nothing on my plot is showing up, anyone know why?
Something's there, but it's a straight line of zeros because |exp(-(x(1)^2 + x(2)^2)./3)| equals zero and cyan is difficult to s...

9 years ago | 0

Answered
How to enlarge pie chart to appear more clearly?
Try this: embiggenby = 20; % <-enter a value here; it's a percent. % Make a plot: subplot(3,1,2) pie(rand(10...

9 years ago | 0

Question


Seeking a faster nlfilter for std2
I want to calculate a 2D moving standard deviation on a 7000x8000 matrix. The moving neighborhood is 900x900. In theory, |nlfi...

9 years ago | 0 answers | 0

0

answers

Answered
How can I compare plots with matlab?
Set the bathymetry values to NaN in all three datasets. You'll have to make a mask of NaN values. In datasets 2 and 3, is bath...

9 years ago | 0

| accepted

Answered
How to smooth out or fit a surface?
If you have the image processing toolbox you could do a moving average or a moving median filter. Median filters tend to be goo...

9 years ago | 2

| accepted

Answered
How to keep the numbers on the colorbar scale of a surface plot fixed?
Set caxis([-40 120]) after both plots.

9 years ago | 4

| accepted

Answered
Matrix dimensions must agree.
You could do this separately for the R, G, and B components of the image, then concatenate: gR = real(ifft2(H.*squeeze(F(:...

9 years ago | 1

Answered
maximum and minimum of each columns of a cell array
You can use <http://www.mathworks.com/help/matlab/ref/cellfun.html |cellfun|> where the |func| argument is simply |@max| or |@mi...

9 years ago | 0

Answered
Matlab variable and mapping toolbox
If you use |geoshow| instead of |mapshow| you can then use |plotm(lat,lon,'ro')| to plot red circles at the station locations gi...

9 years ago | 1

Answered
Mapping Toolbox: Using a map created by geoshow(Z,R), how do I find the new map geocoordinate limits after the Zoom tool is used to rubberband and zoom in to a new area on map?
The axis values when using |geoshow| are usually in the range of roughly -0.5 to 0.5. You can convert them to lat/lon coordinat...

9 years ago | 1

| accepted

Answered
How do I make a contour of 3-dimensional data?
Indeed, |contour3| only works on 2D matrices, but plots contours in 3D space. What you want to do will require some manual tink...

9 years ago | 0

Answered
How to plot lines with different width in the same figure?
Yes, it's possible! I'd plot them individually and remember to set |hold on| so it won't delete the previous plot with each cal...

9 years ago | 3

| accepted

Load more