Answered
How can I pause until the "return" key is pressed?
You may be able to use <http://www.mathworks.com/help/matlab/ref/waitforbuttonpress.html |waitforbuttonpress|>.

10 years ago | 1

| accepted

Answered
how to get the location and the color of a pixel in workspace by clicking with the mouse - Matlab
I wrote a <http://www.mathworks.com/matlabcentral/fileexchange/53656 |colorpicker|> function to make this a bit easier.

10 years ago | 0

| accepted

Submitted


colorpicker
Get RGB values of any point(s) on a figure from mouse click(s)

10 years ago | 2 downloads |

5.0 / 5
Thumbnail

Answered
Change x-axis grid lines
You can turn on minor ticks by set(gca,'XMinorTick','on') and/or set(gca,'XMinorGrid','on') but exact values...

10 years ago | 2

| accepted

Submitted


fastscatterm
A much faster version of scatterm.

10 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
Save data every at loop interation
That depends on what you mean by saving. If you just want it in your workspace, for k=1:N V(i,1)=A(i,1) Z=1...

10 years ago | 0

Answered
I am having some issues calculating grades using matlab.
Or more succinctly, x = 80; letters = {'F','D','C','B','A'}; disp(letters{min([ max([floor((x-50)/10) 0])+1 5]...

10 years ago | 1

Answered
[DISCONTINUED] New design of the forum - grey on white / wish list #3 / bug reports
The design of this forum just keeps getting worse. Seems to be slower than ever, harder to navigate, harder to see new question...

10 years ago | 2

Submitted


filter1
1D zero-phase frequency filtering using butterworth filters

10 years ago | 2 downloads |

4.9 / 5
Thumbnail

Submitted


plotpsd
Quickly plot power spectral density of a time series.

10 years ago | 2 downloads |

4.8 / 5
Thumbnail

Answered
problem related to for loop
You can't start indexing with zero. You'll have to do |for l = 1:length(m)|

10 years ago | 0

Answered
How can I set the NoData value using Geotiffwrite
For most of the GeoTIFFs I've used, NaNs have been set to the value |-32767|. If you're saving matrix |Z| that has |NaN| values...

10 years ago | 0

Question


Is there ever a good time to use elseif?
I've been helping colleagues debug their codes lately, and I keep finding problems stemming |elseif| statements, particularly if...

10 years ago | 2 answers | 1

2

answers

Answered
How can I define a Mapping Toolbox stereographic projection using the information from a projection file (.prj) ?
Alternatively, with Antarctic Mapping Tools available on File Exchange, simply type antmap to initialize a southern he...

10 years ago | 0

Answered
How to plot a 3D graph?
This isn't a problem with plotting, it's a problem with your data. See: hist(TT(:)) Your |TT| matrix has some pretty b...

10 years ago | 0

Answered
How to plot x,y of a non-function?
Does this do what you want? t = 1:30; x = 50*cosd(4*t)+5*rand(size(t)); y = 40*sind(6*t)-10*cosd(5*t)+3*rand(size...

10 years ago | 0

Answered
Computing distance between vectors and finding the ids of the points and the time
Check out John D'Errico's inter-point distance matrix function on File Exchange. mmsi = repmat((500:510)',5,1); lat =...

10 years ago | 0

| accepted

Answered
Superimposing of the boundaries of world countries on a map
Hi Ehsan, You can use a function I wrote for this called <http://www.mathworks.com/matlabcentral/fileexchange/50390-borders/...

10 years ago | 0

| accepted

Answered
How can I set colorbar properly?
Looks like this issue keeps popping up. Unless the values in |clim5| are only 1, 2, 3, 4, and 5, using |'YTick'| values of |1:l...

10 years ago | 0

Answered
Why pcolor and m_pcolor do not use every colors in the figure?
This looks like an issue similar to your other question. Your |'Ytick'| values are |1:length(map)|, but I have a feeling they s...

10 years ago | 0

Answered
Why does not m_pcolor draw some colors?
I'm not sure if this is causing your problems, but your Ytick values should be [1, 4, 5, 6, 9, 11, 17]; not [1:le...

10 years ago | 0

Answered
Make a tensor with nc images?
Ah, .mat files are Matlab's own file format. The nice thing about .mat files is that they're super easy to work with when you u...

10 years ago | 0

Answered
What does the array mean?
The |eye| function creates the identity matrix. It's just ones in a diagonal line, with zeros everywhere else. So >> eye...

10 years ago | 0

Submitted


SODB Southern Ocean Database Toolbox
Access, interpolate, and plot SODB data.

10 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
Make a tensor with nc images?
I think you need <http://www.mathworks.com/help/matlab/ref/ncread.html |ncread|> rather than |hdfread|. NetCDF and HDF formats a...

10 years ago | 0

| accepted

Submitted


anglemath
Perform cumsum or cumtrapz along an arbitrary angle.

10 years ago | 2 downloads |

0.0 / 5
Thumbnail

Answered
Text Wrap Problem in Paragraph and Text Components- Report Generator
The <http://www.mathworks.com/matlabcentral/fileexchange/53176-wraptext/content/wraptext/html/wraptext_documentation.html |wrapt...

10 years ago | 0

Answered
How to wrap due to specify the number of columns chars in a picture
Another option is <http://www.mathworks.com/matlabcentral/fileexchange/53176-wraptext/content/wraptext/html/wraptext_documentati...

10 years ago | 0

Answered
output file text creation text wrap around
<http://www.mathworks.com/matlabcentral/fileexchange/53176-wraptext/content/wraptext/html/wraptext_documentation.html |wraptext|...

10 years ago | 0

Answered
wrap text with disp.
I ended up writing a function for this called <http://www.mathworks.com/matlabcentral/fileexchange/53176-wraptext/content/wrapte...

10 years ago | 0

| accepted

Load more