Answered
Search for elements in a string
For multiple special characters, use a few calls of |regexp| and |any|: s = 'abcd\potatoes\eddie\murphy?martin/lawrence'; ...

11 years ago | 1

Answered
Search for elements in a string
Use |regexp| s = 'abcd\potatoes\eddie\murphy'; indicesOfSlash = regexp(s,'\') indicesOfSlash = 5 14 20

11 years ago | 0

Answered
How to change labels of contourf when I have no handles?
If the contourf plot is the most recently-plotted object, using |get(gca,...)| should work. Try this: contourf(peaks(20),...

11 years ago | 0

Answered
conditional colouring graph problem
First create a logical array the size of vx and vy. It will have a 1 everywhere vy is bigger than vx, and a zero everywhere els...

11 years ago | 0

Answered
conditional colouring graph problem
It looks like you're only testing the condition of whether the very last value in |vy| is bigger than the very last value in |vx...

11 years ago | 0

| accepted

Answered
How to get the subplot number by clicking on it?
If you can add a tag when creating the data like this for k = 1:4 subplot(2,2,k) set(gca,'tag',num2str(k)) e...

11 years ago | 1

| accepted

Answered
How could I present this spatial data simply?
As I understand your question, the salt marsh edge is a curvy line which can be approximated by many x,y points that moves over ...

11 years ago | 1

Answered
NetCDF file grid box extraction
Use t = datenum(1949,12,ncread('test.nc','time')); to get time in Matlab's datenum format, which is days since year 0...

11 years ago | 0

Submitted


ASAID grounding lines
Get and plot grounding line and hydrostatic line data from ASAID.

11 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
bolding x axis label in a subplot figure
Try changing the figure renderer ( |set(gcf,'renderer','opengl')| or |set(gcf,'renderer','painters')| ). Sometimes the fontweig...

11 years ago | 0

| accepted

Answered
handle graphics in R2014
Indeed, the changes in 2014b have been been a source of frustration for many of us. <http://www.mathworks.com/help/matlab/graphi...

11 years ago | 0

Answered
NetCDF file grid box extraction
I think the issue is that the lat/lon grid is not regular--they're in _rotated_ coordinates. If you have the Mapping Toolbox, h...

11 years ago | 1

Answered
Trend lines
...Or to streamline the |polyfit| -> |polyval| -> |plot| process, <http://www.mathworks.com/matlabcentral/fileexchange/49119-pol...

11 years ago | 2

Answered
How to analyze a three dimensional matrix???
If all you need is a map of slopes or linear trends, <http://www.mathworks.com/matlabcentral/fileexchange/46363-trend/content/tr...

11 years ago | 0

Submitted


polyplot
Easily plot linear trend lines or polynomial fits to scattered data.

11 years ago | 1 download |

5.0 / 5
Thumbnail

Answered
Can anyone please explain the syntax and purpose of plot() function?
If you're trying to plot x,y data on an image, you can do this: imshow('coins.png') hold on plot(1:300,linspace(1,20...

11 years ago | 0

| accepted

Answered
Issue plotting data points as text
Try this: subjstring = {'S22', 'S29', 'S38', 'S40', 'S41', 'S42', 'S43', 'S44', 'S46', 'S47'}; x = 1:10; y = ra...

11 years ago | 0

Answered
Include MATLAB output in LaTeX document?
Does <http://www.mathworks.com/matlabcentral/fileexchange/4894-matrix2latex this> do what you're looking for?

11 years ago | 0

| accepted

Answered
Save image without the white margin
There are many solutions. The best standby solution is to (almost) always use <http://www.mathworks.com/matlabcentral/fileexcha...

11 years ago | 1

Answered
Painter's export problem
Painters does not support transparency. Can you set |'LineStyle'| to |'none'|?

11 years ago | 1

| accepted

Answered
Create colored vector field with unit vectors that are colored by magnitude.
I suspect |ncquiverref| can be modified somewhat easily to remove Mapping Toolbox dependency. That function is well documented,...

11 years ago | 0

Answered
Animate 2D line object
To make an avi, try the <http://www.mathworks.com/help/matlab/ref/videowriter-class.html |videoWriter|> function. To make a gif...

11 years ago | 0

Answered
Finding the mean value for five maximum number in matrix
X_sorted = sort(X); mean5 = mean(X_sorted(1:5),'descend');

11 years ago | 0

Answered
Save figure between each iteration
There's no need to |pause| anything if all you want to do is save figures. <http://www.mathworks.com/matlabcentral/fileexchange...

11 years ago | 1

Answered
How to average GPS data?
Perhaps you can pick one track as a first-guess at a centerline and use <http://www.mathworks.com/matlabcentral/fileexchange/397...

11 years ago | 0

Answered
Importing MATLAB Figures into Latex
Instead of |print| I tend to use <http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig |export_fig|> to export a...

11 years ago | 1

Answered
Overlay digital elevation model on hillshade
Another option is to use the <http://www.mathworks.com/matlabcentral/fileexchange/49065-shadem/content/shadem/html/shadem_docume...

11 years ago | 0

Answered
How do I connect data points on log scale?
Separate the inputs into x and y arrays: x = 3:2:9; y = [3.371779e-04, 2.148437e-05, 4.417304e-06, 1.305630e-06]; ...

11 years ago | 0

Answered
How to plot contourf data on m-map polar stereographic projection?
I have not used M-Map, but you can easily transform your lat/lon coordinates to polar stereographic coordinates with <http://www...

11 years ago | 0

Load more