제출됨


cbarrow: pointy ends for colorbars
Make pointed ends for colorbars

대략 10년 전 | 다운로드 수: 11 |

4.9 / 5
Thumbnail

답변 있음
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...

대략 10년 전 | 0

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

대략 10년 전 | 0

| 수락됨

답변 있음
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...

대략 10년 전 | 0

답변 있음
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 ...

대략 10년 전 | 3

| 수락됨

답변 있음
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...

대략 10년 전 | 1

| 수락됨

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

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 2

답변 있음
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...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 0

답변 있음
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.

대략 10년 전 | 1

| 수락됨

답변 있음
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 ...

대략 10년 전 | 0

답변 있음
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 ...

대략 10년 전 | 1

| 수락됨

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

대략 10년 전 | 0

답변 있음
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|>: ...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 0

답변 있음
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 |...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 0

질문


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

대략 10년 전 | 답변 수: 0 | 0

0

답변

답변 있음
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...

대략 10년 전 | 0

| 수락됨

답변 있음
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...

대략 10년 전 | 2

| 수락됨

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

대략 10년 전 | 4

| 수락됨

답변 있음
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(:...

대략 10년 전 | 1

답변 있음
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...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 1

답변 있음
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...

대략 10년 전 | 1

| 수락됨

답변 있음
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...

대략 10년 전 | 0

답변 있음
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...

대략 10년 전 | 3

| 수락됨

더 보기