Professional Interests: ocean biogeochemistry, ecosystem modeling
Top 1% contributor
3 months ago
I stopped updating my version of Matlab at R2013a due to the issue with fonts not rendering clearly on a MacBook Pro with Retina...
Asked 3 years ago
legendCell = cellstr(num2str(N', 'N=%-d'))
Answered 5 years ago
Try this: linenum = 3; % Or whichever line you wish to read textscan(fid, '%s', 1, 'delimiter', '\n', 'headerlines', linenum-1)...
6 years ago
I wrote <https://github.com/kakearney/boxplot2-pkg |boxplot2|> to handle data like this; it plots boxplots similar to grouped ba...
Answered 1 year ago
I suppose everyone will have their own preferences for what looks "really nice". I use pdflatex to write most of my articles, a...
Answered 2 years ago
I've found mmpolar to be pretty good for any polar plot customization: http://www.mathworks.com/matlabcentral/fileexchange/3885...
2 years ago
In previous versions of Matlab, if I ran a parfor loop without first calling |matlabpool|, it would execute as a serial |for| lo...
Asked 1 year ago
Is there a way to increase the maximum number of open files allowed at a given time?
For that matte...
Asked 2 years ago
Is there a way to explicitly close all open netcdf files, similar to
for open binary ...
Your example image looks very Ferret-y, so I'm assuming your data is currently in netCDF files. Can you give us some more deta...
Answered 4 months ago
You've pretty much done all the work already. Once you have the indices to the edges, all you need to do is query the graph's e...
A few things are happening here. First, by default, the alignment of the text in an annotation text box is in the upper right ...
Answered 5 months ago
No, it's not a bug. Matlab datenumbers are defined as days since Jan 0, 0000. But if you look at the attributes for your time ...
My guess is you created a variable named |min|
which min -all
Can you show the exact code you tried when calling |quiver| and |streamline|? And the specific error you see? Repeated x- and y...
The <http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc interparc> function in the FEX makes this pretty easy:
1 month ago
I'm attempting to extract the polygons defined by a gridded mask, where the mask is defined pcolor-style, i.e. by the grid cell ...
Trying to read some data from Excel files into Matlab, but my files seem to be causing quite a few problems. I'm working on a M...
Asked 5 years ago
If you have the Stats Toolbox, |pdist|, as already mentioned:
A=[3 5 4 5; 1 2 6 3]
Answered 9 months ago
There are two methods that come to mind...
# Use a regular colorbar, and change the tick labels to match your color interval...
You should be able to do this via |set|:
set(h(n).Children.Children(1:2), 'Color', [1 0 0]);
Answered 12 months ago
The |subaxis| command allows you to specify different values for vertical and horizontal spacing. Try playing around with diffe...
You actually have several syntax errors in that script, but they're never being reached because of the way you've structured you...
Take a look at |bsxfun|:
C = bsxfun(@plus, A, B')
You can get the position of the centers of each bar through the XOffset property:
hBar = bar(rand(10,5));
xb = bsxfun(@p...
I wrote the <http://www.mathworks.com/matlabcentral/fileexchange/29638-contourfcmap--filled-contour-plot-with-precise-colormap c...
My first instinct would be to transform the data from lat/lon coordinates into length/width coordinates, where length and width ...
F = dir('ClCdCm*.txt');
nfile = length(F);
ctext = cell(nfile, 1);
cdata = cell(nfile, 1);
for ii = 1:length(F)
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries