Enviada


cbarrow: pointy ends for colorbars
Make pointed ends for colorbars

casi 10 años hace | 20 descargas |

4.9 / 5
Thumbnail

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 3

| aceptada

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 2

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

Pregunta


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

casi 10 años hace | 0 respuestas | 0

0

respuestas

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 2

| aceptada

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

casi 10 años hace | 4

| aceptada

Respondida
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(:...

casi 10 años hace | 1

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

casi 10 años hace | 0

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

casi 10 años hace | 1

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 3

| aceptada

Cargar más